by hwdsl2
2677 deployments · 1679 still active · last rev. 1 year ago

Scripts to build your own IPsec VPN server, with IPsec/L2TP and Cisco IPsec on Ubuntu, Debian and CentOS.

How to use:

After deployment, boot your Linode. Then wait 10 minutes to allow VPN setup to complete.
And your fully configured IPsec VPN server is ready for use!

Check install progress using the "Lish Console" under "Remote Access" in Linode Manager.

Important notes:
Setup VPN clients:

IMPORTANT: DO NOT use these characters in VPN credentials: \ " '

Compatible with: CentOS 7, Debian 8, Debian 9, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, CentOS 6.8, Ubuntu 14.04 LTS

# <UDF name="VPN_IPSEC_PSK" Label="IPsec Pre-Shared Key" />
# <UDF name="VPN_USER" Label="VPN Username" />
# <UDF name="VPN_PASSWORD" Label="VPN Password" />

if [ -f /etc/apt/sources.list ]; then
  apt-get -y update
  apt-get -y install wget
elif [ -f /etc/yum.conf ]; then
  yum -y install wget
  echo "Your distribution is not supported by this StackScript"
  exit 1

wget "$url" -O /tmp/ && sh /tmp/ && rm -f /tmp/