Date: Tue, 13 Feb 2024 14:54:20 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277029] Invalid source address selection for IPv4 Message-ID: <bug-277029-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277029 Bug ID: 277029 Summary: Invalid source address selection for IPv4 Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: nyan@FreeBSD.org After the following changes, DS-Lite (RFC 6333) does not work due to using 0.0.0.0 as source address. https://cgit.freebsd.org/src/commit/?id=3Db0ccf53f2455ad300b8b784c4b1a91a57= 33e890f https://cgit.freebsd.org/src/commit/?id=3D713264f6b8bc5f927dd52cf8ffcccfa39= 7034fec When I revert the changes, it works fine. But I think that this issue is related to source address selection for IPv4= and the IPv4 address on vtnet0 should be selected. My test environment: # ifconfig vtnet0: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> me= tric 0 mtu 1500 options=3D80028<VLAN_MTU,JUMBO_MTU,LINKSTATE> ether 00:a0:98:eb:5c:b2 inet 192.168.10.14 netmask 0xffffff00 broadcast 192.168.10.255 inet6 fe80::2a0:98ff:feeb:5cb2%vtnet0 prefixlen 64 scopeid 0x1 inet6 2405:6581:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX prefixlen 64 autoconf pltime 604800 vltime 2592000 media: Ethernet autoselect (10Gbase-T <full-duplex>) status: active nd6 options=3D23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> lo0: flags=3D1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 1= 6384 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 groups: lo nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL> gif0: flags=3D1008051<UP,POINTOPOINT,RUNNING,MULTICAST,LOWER_UP> metric 0 m= tu 1280 options=3D80000<LINKSTATE> tunnel inet6 2405:6581:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX --> 2001:c28:YYYY:YYYY::YYYY groups: gif nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> # route add -inet default -interface gif0 add net default: gateway gif0 # netstat -4rn Routing tables Internet: Destination Gateway Flags Netif Expire default link#3 US gif0 127.0.0.1 link#2 UH lo0 192.168.0.0/16 192.168.10.1 UGS vtnet0 192.168.10.0/24 link#1 U vtnet0 192.168.10.14 link#2 UHS lo0 # telnet -4 www.freebsd.org 80 Trying 210.231.212.93... telnet: connect to address 210.231.212.93: No route to host Trying 192.50.199.250... telnet: connect to address 192.50.199.250: No route to host telnet: Unable to connect to remote host # telnet -4 -s 192.168.10.14 www.freebsd.org 80 Trying 192.50.199.250... Connected to web.geo.freebsd.org. Escape character is '^]'. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277029-227>