When creating the jail, did you left the "VIMAGE" option ticked?
Try updating the OpenVPN dependencies, run pkg install openvpn to see if everything is ok.
Try and create a tun interface manually using the ifconfig tun create command. More info here: https://forums.freebsd.org/viewtopic.php?t=22143
Did you include the cloned_interfaces="tun" line in /etc/rc.conf?
I got the exact same problem. I have followed your guide and double checked everything.
I get this error:
Code:
[root@openvpn /]# service openvpn start Starting openvpn. ifconfig: interface tun0 does not exist /usr/local/etc/rc.d/openvpn: WARNING: failed to start openvpn
If I run "ifconfig" I have no interface called "tun0", but I got a "tun2".
Code:
[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> epair3b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> ether 02:82:7c:00:0b:0b inet 192.168.0.5 netmask 0xffffff00 broadcast 192.168.0.255 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active tun2: flags=8010<POINTOPOINT,MULTICAST> metric 0 mtu 1500 options=80000<LINKSTATE> nd6 options=9<PERFORMNUD,IFDISABLED>
Tried to create a new interface but ended up with "tun03" that can't be uses (not tun02 either). Tried to create it named tun0 but then it say it already exist.
How should I do? Can you help me with it?
Let me know if you need to see any config files or something!
Last edited: