Skip to content

Instantly share code, notes, and snippets.

@saleh-old
Last active April 5, 2019 20:43
Show Gist options
  • Save saleh-old/287ad238591507a5c284843829511379 to your computer and use it in GitHub Desktop.
Save saleh-old/287ad238591507a5c284843829511379 to your computer and use it in GitHub Desktop.
# install
wget https://git.io/vpnsetup -O vpnsetup.sh && sudo sh vpnsetup.sh
# To add new users
wget -O add_vpn_user.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/add_vpn_user.sh
sudo sh add_vpn_user.sh 'username_to_add' 'password_to_add'
# For Android users, edit /etc/ipsec.conf and edit sha2-truncbug=yes to sha2-truncbug=no
# Clients are set to use Google Public DNS when the VPN is active.
# If another DNS provider is preferred, replace 8.8.8.8 and 8.8.4.4 in both /etc/ppp/options.xl2tpd and /etc/ipsec.conf, then reboot your server.
# DNS addresses with parental control and ad-blockers: https://adguard.com/en/adguard-dns/overview.html
# 176.103.130.132
# 176.103.130.134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment