From 4a2c1a5b77975bca94b3fb14229b1b6b2094110c Mon Sep 17 00:00:00 2001 From: angristan Date: Sun, 16 Sep 2018 17:36:53 +0200 Subject: [PATCH] Fix sysctl --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index cd8411f..80e476d 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -615,7 +615,7 @@ verb 3" >> /etc/openvpn/server.conf echo 'net.ipv6.conf.all.forwarding=1' >> $SYSCTL fi # Avoid an unneeded reboot - sysctl -p + sysctl --system # Set NAT for the VPN subnet iptables -t nat -A POSTROUTING -o $NIC -s 10.8.0.0/24 -j MASQUERADE if [[ "$IPV6" = 'y' ]]; then