Skip to content
Snippets Groups Projects
Commit 5ec792bc authored by Bob Mottram's avatar Bob Mottram
Browse files

Stop forwarding when removing vpn

parent 00d1e643
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,10 @@ function remove_vpn {
rm -rf /etc/openvpn
fi
firewall_disable_vpn
echo 0 > /proc/sys/net/ipv4/ip_forward
sed -i 's|net.ipv4.ip_forward=.*|net.ipv4.ip_forward=0|g' /etc/sysctl.conf
remove_completion_param install_vpn
# remove any client keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment