Fix IPv6 forwarding

This commit is contained in:
Angristan 2018-07-05 22:53:44 +02:00
parent d1ab72b1d6
commit 9a70b83073

View file

@ -603,7 +603,7 @@ verb 3" >> /etc/openvpn/server.conf
# Enable routing # Enable routing
echo 'net.ipv4.ip_forward=1' >> $SYSCTL echo 'net.ipv4.ip_forward=1' >> $SYSCTL
if [[ "$IPV6" = 'y' ]]; then if [[ "$IPV6" = 'y' ]]; then
echo 'net.ipv6.ip_forward=1' >> $SYSCTL echo 'net.ipv6.conf.all.forwarding=1' >> $SYSCTL
fi fi
# Avoid an unneeded reboot # Avoid an unneeded reboot
sysctl -p sysctl -p