6

My university has an open WiFi that requires me to log into a specific VPN before I can access the internet.

Is there any built-in way or app that allows me to specify which VPN I want to start together with a certain WiFi connection? (Similar to Ubuntu's option to combine a WiFi with a VPN) Right now I have to start the VPN manually every time, and if I loose connectivity, the VPN will not automatically reconnect together with the network connection.

I am using cyanogenmod 10.2.0

EDIT:

To clarify, this is what the option looks like in Ubuntu's network manager:

enter image description here

I want to achieve a similar effect in Android/Cyanogenmod.

4
  • I'm not sure if this could help, but Avast secureline (avast.com/en-us/secureline-android) provides a VPN service and automatically connects when it detects an open wi-fi
    – user61191
    Jun 26, 2014 at 15:32
  • I am not looking for a VPN provider. I have an existing VPN service I want to automatically connect to. So apps that only work for a specific VPN provider won't help me unfortunately.
    – magnattic
    Jun 26, 2014 at 21:42
  • I supposed that, but I wasn't sure. Sorry for the inaccurate answer.
    – user61191
    Jun 27, 2014 at 10:09
  • 3
    This is on the to-do list for Tasker (source). Jul 2, 2014 at 5:36

3 Answers 3

2

Feature of VPNroot does exactly do what you want:

  • auto connect/disconnect on a specific WiFi (only for Pro)

https://play.google.com/store/apps/details?id=com.did.vpnroot&hl=en

4
  • Sounds awesome, but unfortunately I was unable to establish the VPN connection with this app even after trying out all possible settings I could think of. It works without problems with the built-in CM VPN tool, so I am not sure why this app does not work.
    – magnattic
    Jul 2, 2014 at 14:06
  • Which CM build do you use? Stable & official or some unofficial build?
    – Underlines
    Jul 7, 2014 at 10:16
  • Stable and official, on a Galaxy S3. The exact CM version number is in the question.
    – magnattic
    Jul 7, 2014 at 19:23
  • That's your problem -- you're running the "stable and official" version. You need Root for VPNroot to work. Go to Settings - About and tap the build number until it enables Developer options, then go to the Developer menu and enable root for apps.
    – apraetor
    Apr 28, 2015 at 20:38
1

Looks like with privateinternetaccess VPN you can do it. You have to enter details given by the vpn provider into the smartphone settings so the app is not required:

Android-How to use " Allways-on VPN"

I guess other vpn providers can give you the connection setting to enter on your android device. If you use an app, I guess it's not that straightforward.

Enable VPN on airplane mode, before connecting

1
  • Do you know why when I tick "Always-On VPN" the button Connect get greyed out? Without this checkbox enabled it connects smoothly.
    – Suncatcher
    Dec 20, 2019 at 21:45
0

I was struggling too and today I finally found a solution (may be a bite late for you but may help others) that works for my stock rooted android device 4.4.2 :

  • Install E-Robot, a powerful tasker that have really great features
  • Then install Secure Settings, that will appear as a third party actions on E-Robot. There, you can choose Root Action and VPN, which should be supported.

You can now configure E-Robot to connect to a chosen VPN if an app from a defined group is launched/gains focus, and to disconnect otherwise!

1
  • Sorry, just realised I misread, but what I said is still a working solution for you : it's possible to define a global variable expression equivalent to <Current Wifi> equals <School Wifi>, and set as an event Wifi connected with condition your global variable, that'll launch VPN connection; and then do the same to disconnect it ;)
    – n0xew
    Apr 15, 2016 at 13:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .