Commit f1e5e4e
committed
Fix Tailscale endpoint using wrong source IP with advertise_routes
When advertise_routes is configured, the gvisor stack may choose a
subnet address as the source IP instead of the Tailscale IP. This
causes ACL rules that filter by source to fail.
Fix by explicitly binding to the Tailscale IP when making outbound
connections, matching the behavior of the official tsnet implementation.
Fixes #34891 parent 7fa7d4f commit f1e5e4e
1 file changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
351 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
352 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
353 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
354 | 370 | | |
355 | 371 | | |
356 | 372 | | |
357 | | - | |
| 373 | + | |
358 | 374 | | |
359 | 375 | | |
360 | 376 | | |
361 | 377 | | |
362 | 378 | | |
363 | | - | |
| 379 | + | |
364 | 380 | | |
365 | 381 | | |
366 | 382 | | |
| |||
0 commit comments