ipsec ike-vpn :500/udp

IPSEC type of Internet Security Association Key Management Protocol (ISAKMP)

Framework for authentication and key exchange. Phases in setting up security association (SA) between endpoints:

  1. Establish secure channel using PreSharedKey (PSK) or certificates. It can use main mode (3 pairs of messages) or aggressive mode.

  2. (optional) Extended AUTH Phase - authenticates the user trying to connect.

  3. Negotiates the parameter for data security using ESP or AH. Can use different algorithm than phase

Connect

sudo ipsec statusall

# auto=start
sudo ipsec [start --nofork]

# auto=add
sudo ipsec [start | stop]
sudo ipsec [up | down] CONFIG-NAME

Config files

/etc/ipsec.secrets

This file hold shared secrets or RSA private keys for authentication

/etc/ipsec.conf

Install Strongswan

Error fix (while connecting)

Last updated

Was this helpful?