Set up a VPN IKE client (Linux)

The easy way is using charon-cmd, this is a command-line program for setting up IPsec VPN connections that are using IKE.

First, in your Linux distribution, install the package charon-cmd libcharon-extra-plugins

Second, import the certificate from the server.

Finally, just issue the following command

  1. sudo charon-cmd --cert /path/to/the/cert/ca.crt --host --identity <username>

When the connection is starting it will require your user's password. Press <Enter>.

Now you are connected

To disconnect from the server, just press <C-c>.