diff --git a/BashScripts/install-openvpn-server.sh b/BashScripts/install-openvpn-server.sh index b8a92b4..18ddcc9 100644 --- a/BashScripts/install-openvpn-server.sh +++ b/BashScripts/install-openvpn-server.sh @@ -110,7 +110,10 @@ fi sed -i -e 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g' /etc/sysctl.conf sudo sysctl -p /etc/sysctl.conf -systemctl start openvpn@myserver +# systemctl start openvpn@myserver +systemctl enable openvpn-server@myserver +systemctl start openvpn-server@myserver +systemctl list-units --type=service | grep openvpn echo Settings up NAT rules... add_iptables_rule "-t nat -A POSTROUTING -s $VPN_SUBNET.0/24 -o $NIC_NAME -j MASQUERADE"