Thanks! Is there a reason it's not enabled by default?
NMCLI VPN setup
Re: NMCLI VPN setup
My noob level: LPIC-2, Sec+ CE, Linux+
https://boydhanaleiako.me
https://boydhanaleiako.me
Re: NMCLI VPN setup
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.
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
https://boydhanaleiako.me
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: NMCLI VPN setup
What kind of special characters? Maybe it's a bug in Network Manager implementation...
Re: NMCLI VPN setup
$ and *hunter86_bg wrote: ↑2019/01/26 09:04:58What kind of special characters? Maybe it's a bug in Network Manager implementation...
My noob level: LPIC-2, Sec+ CE, Linux+
https://boydhanaleiako.me
https://boydhanaleiako.me
Re: NMCLI VPN setup
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.
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
https://boydhanaleiako.me