The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

nmcli: Connection activation failed: no valid VPN secrets.

asked 2014-05-12 17:21:07 +0000

Weishaupt gravatar image

I have the following setup:

[connection]
id=My connection name
uuid=aa-bb-cc-dd
type=vpn
permissions=user:theuser:;

[vpn]
service-type=org.freedesktop.NetworkManager.openvpn
connection-type=tls
remote=xxx.xxx.xxx.xxx
cipher=BF-CBC
comp-lzo=yes
tunnel-mtu=1400
cert-pass-flags=1
port=xxxx
cert=/home/theuser/.vpn/key.p12
ca=/home/theuser/.vpn/key.p12
key=/home/theuser/.vpn/key.p12
tls-remote=xxx.xxx.xxx.xxx

[ipv4]
method=auto

When I'm logged into the default ubuntu session I can type nmcli con up id "My connection name" which will setup the VPN respectively.

Executing exactly the same under i3 gives me:

Error: Connection activation failed: no valid VPN secrets.

I am logged in with the same user and do not execute the nmcli-command under root.

What do I miss?

edit retag flag offensive close merge delete

Comments

I am not entirely sure about what’s the problem, so I’m not going to write this as an answer, but it sounds like this is a (gnome-)keyring problem?

Michael gravatar imageMichael ( 2014-05-25 18:19:15 +0000 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2014-05-16 21:07:09 +0000

bonidydy gravatar image

My configuration looks like this and works:

[connection]
id=my_connection
uuid=x-y-z
type=vpn
autoconnect=false
timestamp=1394900890

[vpn]
service-type=org.freedesktop.NetworkManager.pptp
password-flags=0
require-mppe=yes
user=my_user_name
refuse-eap=yes
refuse-chap=yes
nobsdcomp=yes
gateway=xx.xx.xx.xx
domain=my_domain
refuse-pap=yes

[vpn-secrets]
password=my_password

[ipv4]
method=auto

Important is to add "password-flags=0" and "password=my_password". Otherwise Network Manager tries to get the data from gnome keyring. Your case looks even more complicated as some keys are used :).

edit flag offensive delete link more

Comments

This config doesn't help me, as I'm using TLS. The thing is though, it works in Unity but won't work in i3.

Weishaupt gravatar imageWeishaupt ( 2014-05-18 11:53:32 +0000 )edit

Question Tools

Stats

Asked: 2014-05-12 17:21:07 +0000

Seen: 2,313 times

Last updated: May 16 '14