Re: Source address selection failure when using RFC5549-style (v4-via-v6) routes
- In reply to: Felix : "Source address selection failure when using RFC5549-style (v4-via-v6) routes"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Aug 2025 15:00:29 UTC
Felix: > I've been experimenting a bit with routing IPv4 via IPv6 next-hops, >[...] > What I've discovered: trying to /originate/ a connection from a machine with > such a route doesn't seem to work properly. you can fix this by assigning your IPv4 loopback address to every interface with such a route: ifconfig ix0 inet 192.168.0.1/32 ifconfig ix1 inet 192.168.0.1/32 ifconfig ix2 inet 192.168.0.1/32 ... after doing that, you need to re-install any routes via these interfaces to pick up the new source address. > I'm not sure what the right thing for FreeBSD to do in this circumstance is. > What do you think? i prefer the Linux behaviour. however, when i've raised this in the past it seems like this opinion is far from universal. as this matches historical behaviour for legacy IP and there is a workaround, i'm not sure it's important enough to fix. > I also haven't tested whether this same issue affects the generation of ICMP > responses (e.g. TTL expired, packet too big). If it does, that seems like > much more of a concern for using FreeBSD on real routers. it does. the host will send ICMP errors from 0.0.0.0 unless you apply the workaround above.