You are not logged in.

#1 2018-05-26 11:30:11

CopiousCoffee
Member
From: United Kingdom
Registered: 2016-08-02
Posts: 20

Connman VPN no VPN connections appearing

I'm trying to figure out how to setup a VPN service (in my case, Mullvad) with Connman. I've got it working with OpenVPN, but I'd like it to be connected to Connman so that the VPN will auto start/stop when Connman starts a network connection.

I can't, for the life of me, get Connman VPN to even give me an error let alone work. I've read the Connman official guide and all the forum posts I could find.

Here is my /var/lib/connman-vpn/VPN.conf:

[provider_mullvad]
Type = OpenVPN
Name = Mullvad VPN
Host = gb-mnc.mullvad.net
Domain = mullvad.net
OpenVPN.ConfigFile=/etc/openvpn/openvpn.conf
OpenVPN.TLSAuthDir = 1
OpenVPN.AuthNoCache = 0
OpenVPN.CompLZO = yes
OpenVPN.RemoteCertTls = server
OpenVPN.CACert = /etc/openvpn/mullvad_ca.crt
OpenVPN.Cert = /etc/openvpn/mullvad_crl.pem
OpenVPN.AuthUserPass = /etc/openvpn/mullvad_userpass.txt

However, when I run:

connmanctl> vpnconnections

connmanctl> 

You can see there is no listed VPN.

I also tried with a config file I saw online that they confirmed was working but I got the same blank output. Are there any logs that might offer some explanation?

Offline

#2 2019-11-21 16:59:57

ceilingcat
Member
Registered: 2019-11-21
Posts: 1

Re: Connman VPN no VPN connections appearing

For whoever runs into this: I was just stuck on this same issue for an hour.

Turns out VPN config file names need to end in ".config" instead of ".conf".

Offline

#3 2019-11-21 17:10:27

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Connman VPN no VPN connections appearing

Thanks for the contribution.

From the guide linked in the first post:

Configuration file names must not include other characters than letters or numbers and must have a .config suffix.

I will close this old topic now.

Offline

Board footer

Powered by FluxBB