NMCLI VPN setup

Issues related to configuring your network
Boyd.ako
Posts: 46
Joined: 2016/06/22 08:49:07
Location: Honolulu, HI
Contact:

NMCLI VPN setup

Post by Boyd.ako » 2019/01/21 10:53:56

So, I tried googling it.

But, I couldn't find a page that could elaborate on how to configure a VPN connection using nmcli.

I'm trying to setup a Giganews VPN connection and the directions they have are for GUI only and they don't have the OVPN config files anymore.

https://www.giganews.com/support/vyprvp ... envpn.html

Essentially, I'm trying to setup Network Manager do TWO VPN connectionS using a set of random VPN servers.

Yeah, I know how I can do it using OpenVPN. I'm just trying to figure out how to use the "new cool" thing for setting up connections. I'm also using the fancy new FirewallD as the firewall and to setup the routing.... eventually.

The system will essentially function as a VPN gateway to route some traffic either through the Giganews VPN or the PIA VPNs. It's also going to be TOR proxy.
My noob level: LPIC-2, Sec+ CE, Linux+
https://boydhanaleiako.me

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: NMCLI VPN setup

Post by hunter86_bg » 2019/01/22 21:10:02

I guess you can test this one.

Boyd.ako
Posts: 46
Joined: 2016/06/22 08:49:07
Location: Honolulu, HI
Contact:

Re: NMCLI VPN setup

Post by Boyd.ako » 2019/01/23 08:27:20

hunter86_bg wrote:
2019/01/22 21:10:02
I guess you can test this one.
I saw that one. It's essentially just importing OpenVPN config files. A) Giganews doesn't provide the OpenVPN config anymore and B) It's not quite elaborating on using NMCLI for configuration.
My noob level: LPIC-2, Sec+ CE, Linux+
https://boydhanaleiako.me

Boyd.ako
Posts: 46
Joined: 2016/06/22 08:49:07
Location: Honolulu, HI
Contact:

Re: NMCLI VPN setup

Post by Boyd.ako » 2019/01/23 09:34:00

Apparently the Network Manager PPTP and OpenVPN packages are not in the repo setup the vpn types.

working command

Code: Select all

nmcli connection add ifname tun0 connection.type vpn vpn-type pptp
tried changing the PPTP to openvpn and got the same error in NMTUI saying...
Could not activate connection: The VPN service 'org.freedesktop.NetworkManager.pptp' was not installed.
My noob level: LPIC-2, Sec+ CE, Linux+
https://boydhanaleiako.me

Boyd.ako
Posts: 46
Joined: 2016/06/22 08:49:07
Location: Honolulu, HI
Contact:

Network Manager missing software

Post by Boyd.ako » 2019/01/23 09:36:11

In reference please see viewtopic.php?f=50&t=69464&p=291920#p291920

Apparently Network Manager is missing the pptp and OpenVPN stuff.
Could not activate connection: The VPN service 'org.freedesktop.NetworkManager.pptp' was not installed.
My noob level: LPIC-2, Sec+ CE, Linux+
https://boydhanaleiako.me

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: NMCLI VPN setup

Post by hunter86_bg » 2019/01/23 10:51:27

Hm... this one is for Fedora, maybe it will help you a little - but sadly I can't help you.

Boyd.ako
Posts: 46
Joined: 2016/06/22 08:49:07
Location: Honolulu, HI
Contact:

Re: NMCLI VPN setup

Post by Boyd.ako » 2019/01/23 10:53:39

hunter86_bg wrote:
2019/01/23 10:51:27
Hm... this one is for Fedora, maybe it will help you a little - but sadly I can't help you.
No worries... 'Tis the world of GNU Linux....

I think I sort of figured it out and then ran into an issue where CentOS doesn't have the PPTP and OpenVPN packages for Network Manager.
My noob level: LPIC-2, Sec+ CE, Linux+
https://boydhanaleiako.me

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: NMCLI VPN setup

Post by hunter86_bg » 2019/01/23 10:56:32

Do you have the epel repo ? Most of the good stuff is there.

mashiro2004
Posts: 68
Joined: 2018/12/08 21:46:22
Location: Italy

Re: Network Manager missing software

Post by mashiro2004 » 2019/01/23 11:33:51

Hi, have you tried to install networkmanager-openvpn from epel repo?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NMCLI VPN setup

Post by TrevorH » 2019/01/23 11:47:28

Merged your posts together. Please keep discussion of one issue in one thread.

You need to install EPEL = yum --enablerepo=extras install epel-release

Now you have access to another 10,000 packages including NetworkManager-pptp.
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

Post Reply