[Bug 245277] ipfw fwd tablearg does not honour host routes
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jan 16 17:29:18 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245277
--- Comment #1 from bugs.freebsd.org at mx.zzux.com ---
This bug appears on 12.2 also.
Maybe example above is too complicated, below one is simpler.
route -4 add default your_gw
route -4 add -host 169.254.1.1 127.0.0.1
route -4 add -net 169.254.1.2/32 127.0.0.1
ipfw table 8 create type addr valtype ipv4
ipfw table 8 add 8.8.8.8 169.254.1.1
ipfw table 8 add 8.8.4.4 169.254.1.2
ipfw add 8 fwd tablearg ip from any to 'table(8)'
> ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=106 time=17.320 ms
> ping 8.8.4.4
PING 8.8.4.4 (8.8.4.4): 56 data bytes
92 bytes from 127.0.0.1: Time to live exceeded
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 0054 424a 0 0000 01 01 0000 192.168.111.111 8.8.4.4
Routing must be same for both destinations, why different?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ipfw
mailing list