Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 2021 07:51:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254997] vnet jail IPv6 - IPv4 source address selection problem - 13.0-RC5
Message-ID:  <bug-254997-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=3D481009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HW=
FILTER,NOMAP>
ether 00:0c:29:3b:2a:de
inet 172.16.33.135 netmask 0xffffff00 broadcast 172.16.33.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254997-227>