I upgraded my FreeNAS box to 11.2-BETA3, which changed things a little bit.
After a reboot, my host shows
Code:
root@audhumla:~ # ll /dev/tun*
crw------- 1 uucp dialer 0xd3 Sep 12 09:14 /dev/tun0
My jail
Code:
root@openvpn:~ # ll /dev/tun*
ls: No match.
root@openvpn:~ # ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:ff:60:36:38:32
hwaddr 02:86:10:00:0a:0b
inet 192.168.178.204 netmask 0xffffff00 broadcast 192.168.178.255
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair
tun0: flags=8010<POINTOPOINT,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
nd6 options=1<PERFORMNUD>
groups: tun
The OpenVPN log
Code:
Sep 12 09:14:57 openvpn openvpn[7634]: TUN/TAP device tun0 exists previously, keep at program end
Sep 12 09:14:57 openvpn openvpn[7634]: Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2)
Sep 12 09:14:57 openvpn openvpn[7634]: Exiting due to fatal error
I set my openvpn.conf to use
dev tun0
. Setting it to
dev tun
and restarting OpenVPN gives me
Code:
Sep 12 09:40:17 openvpn openvpn[10366]: Tried opening /dev/tun0 (failed): No such file or directory (errno=2)
Sep 12 09:40:17 openvpn openvpn[10366]: Tried opening /dev/tun1 (failed): No such file or directory (errno=2)
...
Sep 12 09:40:17 openvpn openvpn[10366]: Tried opening /dev/tun255 (failed): No such file or directory (errno=2)
Sep 12 09:40:17 openvpn openvpn[10366]: Cannot allocate TUN/TAP dev dynamically
Sep 12 09:40:17 openvpn openvpn[10366]: Exiting due to fatal error
and
ifconfig
returns
tun0
through
tun255
. Exiting my jail, the host
ll /dev/tun*
now lists
tun0
through
tun255
too.
Stopping and starting the jail, the jail
ifconfig
shows the same results as on host reboot but the openvpn log lists errors for
tun0
through
tun255
.
Rebooting the host again gives the same results as after setting
dev tun
in my openvpn config file.