Stop forwarding when removing vpn
This commit is contained in:
parent
00d1e643c6
commit
5ec792bcd6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue