Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1002 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 1002 Bytes

IKEv2-Debian-strongSwan

The VPN server setup use Let's Encrypt certificate, so no need to use private certificates. Authenticate with username and password only. This script will turn off ipv6 for security concern. Let's Encrypt certificate will be auto-renew by certbot, so it is a set and forget setup.

For iOS and Mac profile, set encryption algorithm and integrity algorithm as below.

      <dict>
      <key>EncryptionAlgorithm</key>
      <string>AES-256-GCM</string>
      <key>IntegrityAlgorithm</key>
      <string>SHA2-256</string>
      <key>DiffieHellmanGroup</key>
      <integer>21</integer>
      <key>LifeTimeInMinutes</key>
      <integer>1440</integer>
      </dict>

If you need to open port 80 and 443 for web service, need to uncomment two lines in the scripts or manully added iptables rules.

If you encounter error connecting to the server, run real-time logs and see if you missing any things.

      tail -f /var/log/syslog