1
0
mirror of synced 2025-01-31 20:41:42 +03:00

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:
hwdsl2 2022-05-08 08:31:14 -05:00
parent 30f0f598e4
commit 932e05985f

View File

@ -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() {