You are not logged in.

#1 2016-11-04 21:18:42

SimonT
Member
Registered: 2015-01-26
Posts: 18

Can't get VPN to start when I connect to networks even after wiki

I've been trying to make my computer connect to VPN whenever I connect to a wireless network. I followed the guide in the wiki but when I turn off WiFi and then turn it on again it just connects to my wireless network and nothing else. I don't see any error message and the VPN icon in the top bar (I'm using Gnome) doesn't appear.

I activated NetworkManager-dispatcher with "systemctl enable" (which I think won't work until I restart the computer) and also with "systemctl start". I created the file "vpn-up" and edited the ownership and permissions as described in the wiki. I used "nmcli con show" to find the name of my vpn connection and I defined ESSID=$(iwgetid -r) like described. I didn't continue with step 2 since I have set the VPN as not accessible to other users. After that I turn off WiFi and turn it on again but it doesn't automatically connect to the VPN.

Am I missing something?

The things I'm not sure about is whether I start the service correctly and also whether I choose the right name for the VPN. Something else that seems connected to the VPN in the list given by "nmcli con show" is "tan0" I tried putting that in the script but it doesn't seem to work. Any ideas? Thanks.

Simon

Offline

#2 2016-11-05 01:55:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Can't get VPN to start when I connect to networks even after wiki

Connect manually in the first instance until you have completely debugged it, then use NM (or any other tool).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB