Hello,
I have to connect to ikev2/L2TP vpn server from centos 7. I am just thinking of vpn option in network manager, isnt it possible to connect it from there? Can somebody please help me out as I am very new to is vpn thing. I wont like to install any further software if its not really needed. I am just wondering if I could use the vpn option("VPN OFF", "VPN Settings") already present in networking manager on centos 7.
Thanks a lot.
Sudip
how to connect to ikev2/L2TP vpn server from centos 7?
Re: how to connect to ikev2/L2TP vpn server from centos 7?
I've never used Network Manager, but I have used openconnect from the command line.
Re: how to connect to ikev2/L2TP vpn server from centos 7?
These are the packages I use to connect to an l2tp VPN.
Mostly I use the command line not NM.
Code: Select all
xl2tpd.x86_64 1.3.8-3.el7 epel
NetworkManager-l2tp.x86_64 1.2.10-1.el7 epel
NetworkManager-l2tp-gnome.x86_64 1.2.10-1.el7 epel
libreswan.x86_64 3.23-5.el7_5 updates
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: how to connect to ikev2/L2TP vpn server from centos 7?
Can you please share the command from command line? I have also installed the above mentioned packages.
Best Regards,
Sudip
Best Regards,
Sudip
Re: how to connect to ikev2/L2TP vpn server from centos 7?
Use the NM applet, Edit Connetions menu choice then add a new connection. The first thing it asks you is the connection type and you should choose "Layer 2 Tunneling Protocol - L2TP" then you have a GUI to fill in all that information.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: how to connect to ikev2/L2TP vpn server from centos 7?
Thanks a lot for the help. I set up a vpn account in NM and here is the debug output from the same.
output from "journalctl -u NetworkManager"
Incidentally, phase 1 and phase 2 algorithms are empty, should it be something?
Thanks a lot,
Sudip
output from "journalctl -u NetworkManager"
Code: Select all
NetworkManager[1044]: 002 loading secrets from "/etc/ipsec.d/nm-l2tp-ipsec-0cab31fe-7133-45a6-8196-b39f356b6ef0.secrets"
NetworkManager[1044]: 002 loading secrets from "/etc/ipsec.d/nm-l2tp-ipsec-49823d44-9586-4400-886d-74181156fb01.secrets"
NetworkManager[1044]: debugging mode enabled
NetworkManager[1044]: cannot load config '/var/run/nm-l2tp-ipsec-0cab31fe-7133-45a6-8196-b39f356b6ef0.conf': can't load file '/var/run/nm-l2tp-ipsec-0cab31fe-7133-45a6-8196-b39f356b6ef0.conf'
NetworkManager[1044]: opening file: /var/run/nm-l2tp-ipsec-0cab31fe-7133-45a6-8196-b39f356b6ef0.conf
nm-l2tp-service[23003]: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed
NetworkManager[1044]: <info> [1538762370.8648] vpn-connection[0x55f544a3c4c0,0cab31fe-7133-45a6-8196-b39f356b6ef0,"VPN 2",0]: VPN plugin: state changed: stopped (6)
NetworkManager[1044]: <info> [1538762370.8668] vpn-connection[0x55f544a3c4c0,0cab31fe-7133-45a6-8196-b39f356b6ef0,"VPN 2",0]: VPN service disappeared
NetworkManager[1044]: <warn> [1538762370.8677] vpn-connection[0x55f544a3c4c0,0cab31fe-7133-45a6-8196-b39f356b6ef0,"VPN 2",0]: VPN connection: failed to connect: 'Message recipient disconnected from message bus without replying'
Incidentally, phase 1 and phase 2 algorithms are empty, should it be something?
Thanks a lot,
Sudip