Step by step to install OpenVPN inside a Jail in FreeNAS 11.1-U1

EsTaF

Contributor
Joined
Sep 20, 2013
Messages
163
jexec ... csh
Code:
tail /var/log/messages
Sep 24 12:00:39 plab openvpn[55045]: ROUTE_GATEWAY 192.168.9.1/255.255.255.0 IFACE=epair0b HWADDR=.....
Sep 24 12:00:39 plab openvpn[55045]: TUN/TAP device /dev/tun0 opened
Sep 24 12:00:39 plab openvpn[55045]: /sbin/ifconfig tun0 10.8.0.26 10.8.0.25 mtu 1500 netmask 255.255.255.255 up
Sep 24 12:00:39 plab openvpn[55045]: /sbin/route add -net 1..... 192.168.9.1 255.255.255.255
Sep 24 12:00:39 plab openvpn[55045]: /sbin/route add -net 0.0.0.0 10.8.0.25 128.0.0.0
Sep 24 12:00:39 plab openvpn[55045]: /sbin/route add -net 128.0.0.0 10.8.0.25 128.0.0.0
Sep 24 12:00:39 plab openvpn[55045]: /sbin/route add -net 10.8.0.1 10.8.0.25 255.255.255.255
Sep 24 12:00:39 plab openvpn[55045]: Initialization Sequence Completed
Sep 24 12:00:39 plab openvpn[55045]: Data Channel: cipher 'AES-256-GCM', peer-id: 2
Sep 24 12:00:39 plab openvpn[55045]: Timers: ping 10, ping-restart 120


Code:
ipfw list
00100 nat 1 ip from 10.8.0.0/24 to any out via epair0b
00200 nat 1 ip from any to any in via epair0b
65535 allow ip from any to any


Code:
sockstat -4 -l
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     openvpn    69814 4  udp4   *:23295               *:*


ping 10.8.0.1
PING 10.8.0.1 (10.8.0.1): 56 data bytes
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable

Code:
traceroute 10.8.0.1
traceroute: findsaddr: failed to connect to peer for src addr selection.


Windows connects to the VPN server successfully. I mean, everything is ok with routing.
 
Last edited:

EsTaF

Contributor
Joined
Sep 20, 2013
Messages
163
And further.
Code:
tcpdump -ni $pif udp port 1194
tcpdump: udp: No such device exists
(BIOCSETIF failed: Device not configured)


Is there anyone alive?

And why does the author have the path "openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"" in /etc/rc.conf if he uses "/usr/local/etc/openvpn/Bibi40k.conf"?
 
Last edited:
Top