From 72c7c88810b2b30c92061d79c027771fa75a3ab1 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Mon, 29 Dec 2014 20:21:27 -0800 Subject: [PATCH] --- vpnsetup.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/vpnsetup.sh b/vpnsetup.sh index a78b200..e996aa3 100644 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -34,9 +34,17 @@ IPSEC_PSK=your_very_secure_key VPN_USER=your_username VPN_PASSWORD=your_very_secure_password -# Note: If you need multiple VPN users with different credentials, +# If you need multiple VPN users with different credentials, # please see: https://gist.github.com/hwdsl2/123b886f29f4c689f531 +# Important Notes: +# For Windows users, a registry change is required to allow connections +# to a VPN server behind NAT. Refer to section "Error 809" on this page: +# https://kb.meraki.com/knowledge_base/troubleshooting-client-vpn + +# iPhone/iOS users may need to replace this line in ipsec.conf: +# "rightprotoport=17/%any" with "rightprotoport=17/0". + # In Amazon EC2, these two variables will be found automatically # For all other servers, you MUST replace them with the actual IPs! # If your server only has a public IP, use that IP on both lines @@ -45,12 +53,6 @@ VPN_PASSWORD=your_very_secure_password PUBLIC_IP=$(wget -q -O - 'http://169.254.169.254/latest/meta-data/public-ipv4') PRIVATE_IP=$(wget -q -O - 'http://169.254.169.254/latest/meta-data/local-ipv4') -# Note: iPhone/iOS users may need to replace this line in ipsec.conf -# (Source: http://serverfault.com/a/527793) -# rightprotoport=17/%any -# with the line below: -# rightprotoport=17/0 - # Install necessary packages apt-get update apt-get install libnss3-dev libnspr4-dev pkg-config libpam0g-dev \