From b846d89f361e7297a83d9e9f90aed3530567ca6c Mon Sep 17 00:00:00 2001 From: Johan Date: Wed, 11 Jun 2025 07:34:42 +0200 Subject: [PATCH] Fix OpenVPN server service --- BashScripts/install-openvpn-server.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"