1

Whatever I google for I find tutorials how to setup an IKEv2 VPN server either UI client configuration for different OS.

Is it possible to test the connection with a client in a Linux console environment (Ubuntu 18.04 LTS)?

To connect, the following assets are available:

  • public ip address
  • username and password
  • private shared key (PSK)

So far I've tried vpnc but get an ambiguous error message:

$ vpnc <IP>
$ vpnc: response was invalid [1]:  (ISAKMP_N_INVALID_EXCHANGE_TYPE)(7)
1
  • I receive the same error but believe vpnc to be a good client to use because I am on CentOS and it's from RHEL. Did you figure out the problem? What was the solution? Jul 21, 2022 at 17:33

1 Answer 1

1

We can't make a VPN connection with the little asset info you provided. You can also try strongswan to create ipsec vpn tunnel. To install strongswan in ubuntu:

sudo apt-get install strongswan

There are many ikev2 test setup configurations you can find here.

You can try rw-eap-mschapv2-id-rsa. See the carol configurations [Assuming the gateway is using pubkey authentication, you need to copy the gateway CA certificate into your /etc/ipsec.d/cacerts location].

After updating the config files you can run the following commands from the terminal to let the configs take effect:

$sudo ipsec rereadsecrets
$sudo ipsec reload
$sudo ipsec restart

To connect to newly created home vpn connection, run the below command:

$sudo ipsec up home

To see the status of connection, run the below command:

$sudo ipsec statusall

To disconnect the home vpn connection, run:

$sudo ipsec down home

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .