I cannot get jails to function with IPv6 addresses. I've been trying to get each jail an IPv4 and IPv6 address, but to simplify this issue I've created a test jail as IPv6 only.
I'm running 9.1-RELEASE-p3
My IPv6 addresses and domain have been sanitized, but it is a global prefix given by my ISP via DHCPv6 with prefix delegation (all handled by my router which is not this host). From the host I have full IPv6 Internet connectivity.
IPv6 connectivity works fine from the host. I have security.jail.allow_raw_sockets set to 1, so ping should be allowed in jail for IPv4 and IPv6, and it works in IPv4.
Here's a couple of my jails:
IPv4 to and from jails works fine:
But not IPv6:
I'm running 9.1-RELEASE-p3
My IPv6 addresses and domain have been sanitized, but it is a global prefix given by my ISP via DHCPv6 with prefix delegation (all handled by my router which is not this host). From the host I have full IPv6 Internet connectivity.
IPv6 connectivity works fine from the host. I have security.jail.allow_raw_sockets set to 1, so ping should be allowed in jail for IPv4 and IPv6, and it works in IPv4.
Code:
# ping6 -c2 2001:4860:4860::8888
PING6(56=40+8+8 bytes) 2601:xxxx:yyyy:zzzz:215:17ff:fe0b:1386 --> 2001:4860:4860::8888
16 bytes from 2001:4860:4860::8888, icmp_seq=0 hlim=50 time=54.307 ms
16 bytes from 2001:4860:4860::8888, icmp_seq=1 hlim=50 time=69.797 ms
--- 2001:4860:4860::8888 ping6 statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 54.307/62.052/69.797/7.745 ms
Here's a couple of my jails:
Code:
# jls -v
JID Hostname Path
Name State
CPUSetID
IP Address(es)
3 podrick.my.domain.com /mnt/tank/jail/podrick
3 ACTIVE
4
192.168.10.35
2601:xxxx:yyyy:zzzz::35
7 test.my.domain.com /mnt/tank/jail/test
7 ACTIVE
5
2601:xxxx:yyyy:zzzz::38
Code:
# ping -c2 192.168.10.35
PING 192.168.10.35 (192.168.10.35): 56 data bytes
64 bytes from 192.168.10.35: icmp_seq=0 ttl=64 time=0.022 ms
64 bytes from 192.168.10.35: icmp_seq=1 ttl=64 time=0.032 ms
--- 192.168.10.35 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.022/0.027/0.032/0.005 ms
# jexec 3 ping -c2 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=45 time=40.076 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=45 time=40.038 ms
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 40.038/40.057/40.076/0.019 ms
But not IPv6:
Code:
# ping6 -c2 2601:xxxx:yyyy:zzzz::38
PING6(56=40+8+8 bytes) 2601:xxxx:yyyy:zzzz:215:17ff:fe0b:1386 --> 2601:xxxx:yyyy:zzzz::38
--- 2601:xxxx:yyyy:zzzz::38 ping6 statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss
# jexec 7 ping6 -c2 2001:4860:4860::8888
ping6: UDP connect: Can't assign requested address