From 932e05985fe7382ec522b624a63278ac3444257f Mon Sep 17 00:00:00 2001 From: hwdsl2 <hwdsl2@users.noreply.github.com> Date: Sun, 8 May 2022 08:31:14 -0500 Subject: [PATCH] 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 --- extras/vpnuninstall.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/vpnuninstall.sh b/extras/vpnuninstall.sh index 8158c3b..e1ee307 100755 --- a/extras/vpnuninstall.sh +++ b/extras/vpnuninstall.sh @@ -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() {