Improve VPN setup
- Remove the reboot recommendation when uninstalling using the helper script. - Set net.ipv4.conf.all.rp_filter to 1 in vpnuninstall.sh. Ref: https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
This commit is contained in:
parent
30f0f598e4
commit
932e05985f
@ -187,6 +187,7 @@ update_sysctl() {
|
||||
sed --follow-symlinks -i '/# Added by hwdsl2 VPN script/,+17d' /etc/sysctl.conf
|
||||
fi
|
||||
echo 0 > /proc/sys/net/ipv4/ip_forward
|
||||
echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter
|
||||
fi
|
||||
}
|
||||
|
||||
@ -310,7 +311,7 @@ remove_vpn() {
|
||||
|
||||
print_vpn_removed() {
|
||||
echo
|
||||
echo "IPsec VPN removed! Please reboot your server. This is optional, but recommended."
|
||||
echo "IPsec VPN removed!"
|
||||
}
|
||||
|
||||
vpnuninstall() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user