I tried to configure OpenVPN liked in this http://forums.freebsd.org/threads/openvpn-server-in-jail-using-a-tun-device.22143 tutorial. I am using FreeBSD 10.0. If I add
to my ezjail configuration file, I get the error
I tried to use
instead, but then the tun0 interface in the jail does not get an IP address. Does someone know where the problem could be?
Code:
export jail_openvpn_ip_multi0="tun0|10.8.0.1 10.8.0.2 mtu 1500 netmask 255.255.255.255"
Code:
ifconfig: ioctl (SIOCAIFADDR): Destination address required
jail: openvpn: /sbin/ifconfig tun0 inet 10.8.0.1/32 alias: failed
Code:
export jail_openvpn_exec_prestart0="ifconfig tun0 10.8.0.1 10.8.0.2 netmask 255.255.255.0"