Created
August 20, 2019 11:27
-
-
Save akopdev/6b0a72f72d1f3d75cd228ae75c9fd9ed to your computer and use it in GitHub Desktop.
Как установить VPN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://git.io/vpnsetup -O vpnsetup.sh && sudo sh vpnsetup.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Connect huawei router
Modify the iptables rules in
/etc/iptables.rulesReplace all the INPUT lines with these three:
Code:
in the firewall rules, open the UDP ports 500, 1701 and 4500.
On the router in the VPN page:
Connection type: L2TP VPN client
LNS address: VPN server IP
Hostname: a friendly name (e.g. "GCP VPN")
Tunnel password: the "IPsec PSK" returned by the VPN server script
Handshake interval: 60s
PPP user name: the "Username" returned by the VPN server script
PPP password: the "Password" returned by the VPN server script
Authentication: auto