[Bug 245277] ipfw fwd tablearg does not honour host routes
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Apr 2 08:34:31 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245277
Bug ID: 245277
Summary: ipfw fwd tablearg does not honour host routes
Product: Base System
Version: 11.3-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: bugs.freebsd.org at mx.zzux.com
Example
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
netstat -nrW4
Internet:
Destination Gateway Flags Use Mtu Netif Expire
default 192.168.232.254 UGS 7328 1500 lan1
169.254.1.1 127.0.0.1 UGHS 256 16384 lo0
169.254.1.2/32 127.0.0.1 UGS 7008 16384 lo0
ipfw table 8 list
2.2.2.2/32 169.254.1.1
2.2.2.3/32 169.254.1.2
ipfw show 7000 7010
07000 26151 1297044 fwd tablearg ip from any to table(8)
07010 384 32256 fwd 169.254.1.1 ip from any to 2.2.1.1
07010 512 43008 fwd 169.254.1.2 ip from any to 2.2.1.2
On FreeBSD 11.1, 11.2 all the ping & traceroute to 2.2.2.2, 2.2.2.3, 2.2.1,1,
2.2.1,2 are identical.
ping 2.2.2.3
PING 2.2.2.3 (2.2.2.3): 56 data bytes
36 bytes from localhost (127.0.0.1): Time to live exceeded
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 0054 21c2 0 0000 01 01 0000 192.168.232.246 2.2.2.3
traceroute -m 4 -I 2.2.2.2
traceroute to 2.2.2.2 (2.2.2.2), 4 hops max, 48 byte packets
1 localhost (127.0.0.1) 0.075 ms 0.046 ms 0.067 ms
2 localhost (127.0.0.1) 0.041 ms 0.043 ms 0.037 ms
3 localhost (127.0.0.1) 0.038 ms 0.044 ms 0.038 ms
4 localhost (127.0.0.1) 0.040 ms 0.048 ms 0.040 ms
But on FreeBSD 11.3 traffic to 2.2.2.2 sent via default, ignoring UGHS route.
traceroute -m 4 -In 2.2.2.2
traceroute to 2.2.2.2 (2.2.2.2), 4 hops max, 48 byte packets
1 192.168.232.254 1.521 ms 0.386 ms 0.469 ms
2 192.168.232.249 0.459 ms 0.559 ms 0.579 ms
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list