Fix sysctl

This commit is contained in:
angristan 2018-09-16 17:36:53 +02:00
parent d6b5f0312b
commit 4a2c1a5b77

View file

@ -615,7 +615,7 @@ verb 3" >> /etc/openvpn/server.conf
echo 'net.ipv6.conf.all.forwarding=1' >> $SYSCTL echo 'net.ipv6.conf.all.forwarding=1' >> $SYSCTL
fi fi
# Avoid an unneeded reboot # Avoid an unneeded reboot
sysctl -p sysctl --system
# Set NAT for the VPN subnet # Set NAT for the VPN subnet
iptables -t nat -A POSTROUTING -o $NIC -s 10.8.0.0/24 -j MASQUERADE iptables -t nat -A POSTROUTING -o $NIC -s 10.8.0.0/24 -j MASQUERADE
if [[ "$IPV6" = 'y' ]]; then if [[ "$IPV6" = 'y' ]]; then