NMCLI VPN setup

Issues related to configuring your network
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/24 07:03:38

TrevorH wrote:
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.
Thanks! Is there a reason it's not enabled by default?
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/24 07:23:57

erm... anybody know how to set the "secrets" password that has special characters?

I tried using the `nmcli c edit` with "set vpn.secrets" and straight editing the config file in /etc/NetworkManager/system-connections.

I've tried using the various combos of vpn.secrets with and without the the equals sign, double and single quoting the password, and back-slashing the special characters.
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/25 10:26:14

bump
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/26 09:04:58

What kind of special characters? Maybe it's a bug in Network Manager implementation...

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/26 10:24:59

hunter86_bg wrote:
2019/01/26 09:04:58
What kind of special characters? Maybe it's a bug in Network Manager implementation...
$ and *
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/26 12:40:51

So... got it to work by cheating and using the gui procedures. Below is copy of it. I noticed there's some stuff in there that wasn't mentioned in any other posts or documents. Notably the connection.permissions, vpn.ca, vpn.connection-type and the vpn.comp-lzo. I'm assuming there was some sort of tie into one of those settings to the using of the password in the config file.

Now, to play around adding a bunch of different servers and setting to select them randomly.

Code: Select all

[connection]
id=Giganews
uuid=2f673121-70ae-4ba7-ac06-42884f88cfbe
type=vpn
autoconnect=false
permissions=user:<username of who can run it>:;

[vpn]
ca=/etc/openvpn/ca.vyprvpn.com.crt
comp-lzo=adaptive
connection-type=password
password-flags=0
remote=us1.vpn.giganews.com
username=<vpn service username>
service-type=org.freedesktop.NetworkManager.openvpn

[vpn-secrets]
password=<some fancy password>

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
My noob level: LPIC-2, Sec+ CE, Linux+
https://boydhanaleiako.me

Post Reply