de7d8f80d50ced73099ef28351f694985860cd37
howto/Bird.md
| ... | ... | @@ -42,6 +42,16 @@ include "/etc/bird/filter6.conf"; |
| 42 | 42 | # Kernel routing tables |
| 43 | 43 | ######################## |
| 44 | 44 | |
| 45 | + |
|
| 46 | +/* |
|
| 47 | + krt_prefsrc defines the source address for outgoing connections. |
|
| 48 | + On Linux, this causes the "src" attribute of a route to be set. |
|
| 49 | + |
|
| 50 | + Without this option outgoing connections would use the peering IP which |
|
| 51 | + would cause packet loss if some peering disconnects but the interface |
|
| 52 | + is still available. (The route would still exist and thus route through |
|
| 53 | + the TUN/TAP interface but the VPN daemon would simply drop the packet.) |
|
| 54 | +*/ |
|
| 45 | 55 | protocol kernel { |
| 46 | 56 | scan time 20; |
| 47 | 57 | device routes; |