L2TP VPN Server

IPsec/L2TP and IKEv2 VPN server with Libreswan and xl2tpd.

This system uses and builds upon the IPsec/L2TP VPN setup scripts by Lin Song (https://github.com/hwdsl2/setup-ipsec-vpn)

Client Configuration Files

/root/vpnclient.p12            # for Windows & Linux
/root/vpnclient.sswan          # for Android
/root/vpnclient.mobileconfig   # for iOS & macOS

Client Setup Guide

Refer to the official client setup instructions: https://vpnsetup.net/clients

Important Files and Directories

  • IPsec configuration: /etc/ipsec.conf
  • IPsec certificates and keys: /etc/ipsec.d/
  • PSK and authentication: /etc/ipsec.secrets
  •  L2TP daemon configuration: /etc/xl2tpd/
  • PPP (Point-to-Point Protocol) and CHAP settings: /etc/ppp/
  • VPN credentials: /root/.cloudzy-creds
  • Nginx site config: /etc/nginx/sites-available/nocodb.conf
  • Self-signed SSL certs: /etc/nginx/s

Application Details