You are not logged in.
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
Connect manually in the first instance until you have completely debugged it, then use NM (or any other tool).
Offline