1
0
mirror of synced 2024-11-23 21:36:09 +03:00

Compare commits

...

2 Commits

Author SHA1 Message Date
hwdsl2
6aaacdadce Update docs 2022-05-08 08:33:09 -05:00
hwdsl2
932e05985f 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
2022-05-08 08:31:14 -05:00
3 changed files with 2 additions and 5 deletions

View File

@ -14,8 +14,6 @@ wget -nv -O vpnunst.sh https://get.vpnsetup.net/unst
sudo bash vpnunst.sh sudo bash vpnunst.sh
``` ```
在完成后重启你的服务器。这一步是可选的,但推荐。
<details> <details>
<summary> <summary>
如果无法下载,请点这里。 如果无法下载,请点这里。

View File

@ -14,8 +14,6 @@ wget -nv -O vpnunst.sh https://get.vpnsetup.net/unst
sudo bash vpnunst.sh sudo bash vpnunst.sh
``` ```
When finished, reboot your server. This is optional, but recommended.
<details> <details>
<summary> <summary>
Click here if you are unable to download. Click here if you are unable to download.

View File

@ -187,6 +187,7 @@ update_sysctl() {
sed --follow-symlinks -i '/# Added by hwdsl2 VPN script/,+17d' /etc/sysctl.conf sed --follow-symlinks -i '/# Added by hwdsl2 VPN script/,+17d' /etc/sysctl.conf
fi fi
echo 0 > /proc/sys/net/ipv4/ip_forward echo 0 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter
fi fi
} }
@ -310,7 +311,7 @@ remove_vpn() {
print_vpn_removed() { print_vpn_removed() {
echo echo
echo "IPsec VPN removed! Please reboot your server. This is optional, but recommended." echo "IPsec VPN removed!"
} }
vpnuninstall() { vpnuninstall() {