From nobody Tue Feb 13 14:54:20 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TZ4991rb3z5BTBn for ; Tue, 13 Feb 2024 14:54:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ4986kT3z4ThP for ; Tue, 13 Feb 2024 14:54:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707836060; a=rsa-sha256; cv=none; b=cQ3nVJCOLKqJBpFbDZSHZMY0BPVvJAdgPfTGzp337f95/Lj+e+BwJZYF5k0ER6PqLN0GmR V4Sg/jl7dZwIDaDABZ8gVwmoJln9Scm7fRsCP8eFuWtuUUO29bHz+eSd0eAE2bgWUzZtp4 3mKIvn5B4AuqZvcv/gWBG1doVIUPESPK85tvp++vs4tD5OM+u5RByqm1rg3liPIArz020t KTYVhIJg9CAumn32mlNCkj79YP+zOHAm/oXlMVdg4W0L6ZdJD7GWOoyCBPiL3BwKmppYNw 3vY7jVYck5apnHfZcOl4qcT9DLfvwafQxveIVZuX9NZ407i6Ssy+bTKsnU98Dw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707836060; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yDJPet/eaKcVTcLm5t4ccvV2fS8Hx5Z37QS5Ji+v4RA=; b=p3Ml92wo23uHBG9IOTc02azWq0vkXblvH4muV/2/1kvjD/+dg8RlebdBcm5+vjNVAK+qcR lKcwy8xv+AL6pmQ8KBVJI3/p+a52TACmTTV/7Pn8ytrQL+rp/WzFaNe/0lUBABtQg738iD pwKjrtm5XIEvvyT0zFhpwHW2hu6ELMY/h4NWjCZq/OUbUQtbFxNt2RMc/AsBZO8LWLKvDD tW77MwHupbH97pHT2E1aG3KCGD7AIqmhFJGh5pvOTcJrPSJ11H0Sop1aZ8Ho2TtFNW6y8R gpLjPi7AuO83KlhljXFCYVWsOuC6/Ra5C+Rzb8jX7NWefpdYcb2w6uXkyXP04w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TZ4985nsQzJwt for ; Tue, 13 Feb 2024 14:54:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 41DEsKOw055996 for ; Tue, 13 Feb 2024 14:54:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41DEsKXF055989 for bugs@FreeBSD.org; Tue, 13 Feb 2024 14:54:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277029] Invalid source address selection for IPv4 Date: Tue, 13 Feb 2024 14:54:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nyan@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 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 me= tric 0 mtu 1500 options=3D80028 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 ) status: active nd6 options=3D23 lo0: flags=3D1008049 metric 0 mtu 1= 6384 options=3D680003 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 groups: lo nd6 options=3D21 gif0: flags=3D1008051 metric 0 m= tu 1280 options=3D80000 tunnel inet6 2405:6581:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX --> 2001:c28:YYYY:YYYY::YYYY groups: gif nd6 options=3D29 # 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.=