Hi,
i just installed openvpn from this guide: https://forums.freenas.org/index.ph...-6-with-access-to-remote-hosts-via-nat.22873/
but realized that the new easyrsa had a different setup (didn't have to source var) so i followed this work around: https://forums.freenas.org/index.php?threads/how-to-set-up-openvpn-server-on-freenas-9-3.40862/
When I try to start openvpn it says it is starting but when i check it's status it's not running!
when i start openvpn it says:
but when i check status it didn't start!:
OpenVPN Config:
here is my /etc/rc.conf
here is my ipfw.rules
i just installed openvpn from this guide: https://forums.freenas.org/index.ph...-6-with-access-to-remote-hosts-via-nat.22873/
but realized that the new easyrsa had a different setup (didn't have to source var) so i followed this work around: https://forums.freenas.org/index.php?threads/how-to-set-up-openvpn-server-on-freenas-9-3.40862/
When I try to start openvpn it says it is starting but when i check it's status it's not running!
when i start openvpn it says:
Code:
root@OpenVPN:/usr/local/etc/rc.d # service openvpn start Starting openvpn.
but when i check status it didn't start!:
Code:
root@OpenVPN:/usr/local/etc/rc.d # service openvpn status openvpn is not running. root@OpenVPN:/usr/local/etc/rc.d #
OpenVPN Config:
Code:
port 1194 proto udp dev tun ca /mnt/openvpn/keys/ca.crt cert /mnt/openvpn/keys/openvpn-server.crt #Server key created previously key /mnt/openvpn/keys/openvpn-server.key dh /mnt/openvpn/keys/dh2048.pem #Diffie-Hellman parameters are now 2048 bits long server 10.8.0.0 255.255.255.0 #Purple network ifconfig-pool-persist ipp.txt push "route 10.0.0.0 255.255.255.0" #Yellow network route 192.168.1.2 255.255.255.0 10.8.0.1 #Routes traffic from the Yellow network side $ #to the Purple network side (10.8.0.0/24) #tls-auth /mnt/openvpn/keys/auth.key 0 #crl-verify /mnt/openvpn/keys/crl.pem keepalive 10 120 group nobody user nobody comp-lzo persist-key persist-tun verb 7
here is my /etc/rc.conf
Code:
apache22_enable="YES" sshd_enable="YES" vboxwebsrv_user="vbox" vboxwebsrv_enable="YES" inet6_enable="YES" ip6addrctl_enable="YES" openvpn_enable="YES" openvpn_if="tun" openvpn_configfile="/mnt/openvpn/openvpn.conf" openvpn_dir="/mnt/openvpn" cloned_interfaces="tun" gateway_enable="YES" firewall_enable="YES" firewall_script="/usr/local/etc/ipfw.rules"
here is my ipfw.rules
Code:
#!/bin/sh EPAIR=$(/sbin/ifconfig -l | tr " " "\n" | /usr/bin/grep epair) ipfw -q -f flush ipfw -q nat 1 config if ${EPAIR} ipfw -q add nat 1 all from 10.8.0.0/24 to any out via ${EPAIR} ipfw -q add nat 1 all from any to any in via ${EPAIR} TUN=$(/sbin/ifconfig -l | tr " " "\n" | /usr/bin/grep tun) ifconfig ${TUN} name tun0
Last edited: