From owner-freebsd-bugs@freebsd.org Mon Apr 12 07:51:41 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1DFAA5EDAFD for ; Mon, 12 Apr 2021 07:51:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FJgt509H2z3QXR for ; Mon, 12 Apr 2021 07:51:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 05B825ED8D9; Mon, 12 Apr 2021 07:51:41 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 057EE5ED76E for ; Mon, 12 Apr 2021 07:51:41 +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 4FJgt46hRcz3QgY for ; Mon, 12 Apr 2021 07:51:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 D956713617 for ; Mon, 12 Apr 2021 07:51:40 +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 13C7peYd090950 for ; Mon, 12 Apr 2021 07:51:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13C7peZG090949 for bugs@FreeBSD.org; Mon, 12 Apr 2021 07:51:40 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 254997] vnet jail IPv6 - IPv4 source address selection problem - 13.0-RC5 Date: Mon, 12 Apr 2021 07:51:41 +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: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ozkan.kirik@gmail.com 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 07:51:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254997 Bug ID: 254997 Summary: vnet jail IPv6 - IPv4 source address selection problem - 13.0-RC5 Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: ozkan.kirik@gmail.com There is something wrong about source address selection on vnet-jails. Alth= ough my jail doesn't have IPv6 address, it tries to use IPv6 by default and get "ping: UDP connect: No route to host" error. But it works by forcing to use IPv4. There is no such problem on FreeBSD 12.2-p6. The problem is reproducable. This is a fresh insallation of FreeBSD 13.0-RC= 5: root@f13:~ # uname -a FreeBSD f13 13.0-RC5 FreeBSD 13.0-RC5 #0 releng/13.0-n244727-f8a134d0ef1: F= ri Apr 2 04:29:19 UTC 2021=20=20=20=20 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 root@f13:~ # jail -c name=3Dclient persist vnet vnet.interface=3Dem1 root@f13:~ # jexec client dhclient em1 DHCPREQUEST on em1 to 255.255.255.255 port 67 DHCPACK from 172.16.33.254 bound to 172.16.33.135 -- renewal in 900 seconds. root@f13:~ # jexec client ifconfig em1 em1: flags=3D8863 metric 0 mtu 1500 options=3D481009b ether 00:0c:29:3b:2a:de inet 172.16.33.135 netmask 0xffffff00 broadcast 172.16.33.255 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D29 root@f13:~ # jexec client host www.google.com www.google.com has address 216.58.212.100 www.google.com has IPv6 address 2a00:1450:4006:80b::2004 root@f13:~ # jexec client ping www.google.com ping: UDP connect: No route to host root@f13:~ # jexec client ping -4 -c 2 www.google.com PING www.google.com (216.58.212.100): 56 data bytes 64 bytes from 216.58.212.100: icmp_seq=3D0 ttl=3D128 time=3D85.487 ms 64 bytes from 216.58.212.100: icmp_seq=3D1 ttl=3D128 time=3D90.243 ms --- www.google.com ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev =3D 85.487/87.865/90.243/2.378 ms root@f13:~ # --=20 You are receiving this mail because: You are the assignee for the bug.=