Scripts to build your own IPsec VPN server, with IPsec/L2TP and Cisco IPsec on Ubuntu, Debian and CentOS.How to use: https://www.linode.com/docs/platform/stackscriptsAfter 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: https://git.io/vpnnotesSetup VPN clients: https://git.io/vpnclientsGitHub: https://github.com/hwdsl2/setup-ipsec-vpnIMPORTANT: DO NOT use these special characters in values: \ " 'A secure IPsec PSK should consist of at least 20 random characters.
# <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"
wget "https://git.io/$url" -O /tmp/vpn.sh && sh /tmp/vpn.sh && rm -f /tmp/vpn.sh