-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IKEv2 CLI interace on Linux #1399
Comments
@Alphalynxjet Hello! Thanks for sharing your findings with us. IKEv2 command line instructions were mentioned a few times in recent Issues by different users. I plan to test and compile them into the documentation when I have time. |
need help!I have a problem to create a connection: |
The readme file for IKEv2 should be updated with the possibility to connect using CLI on a UBUNTU VPS. Here are the steps.
Step #1 Install Network manager and strongswan plugin
Step #2 Edit the globally managed devices file and change unmanaged devices to none
nano /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf
Edit the file so it is like this
[keyfile]
unmanaged-devices=none
Step #3 Restart the network manager service
sudo systemctl restart NetworkManager
Step #4 Check if the devices are managed
nmcli d
Step #6 Import the .p12 certificate
Step #7 Create a VPN connection in NetworkManager and enable it.
sudo nmcli c add type vpn ifname -- vpn-type strongswan connection.id VPN connection.autoconnect no vpn.data 'address = **YOURSERVERADDRESSHERE**, certificate = /root/ca.cer, encap = no, esp = aes128gcm16, ipcomp = no, method = key, proposal = yes, usercert = /root/client.cer, userkey = /root/client.key, virtual = yes'
Step #8 check your public IP if everything works
curl -4 ifconfig.co
The text was updated successfully, but these errors were encountered: