Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Is there any way to force Android to route all (but ONLY) public wifi traffic through a PPTP VPN?

My phone basically has three connectivity scenarios:

  • AT&T's HSPA+ or LTE. I don't want to use a VPN with this.

  • public wifi. I don't ever want to send anything that isn't tunneled through a VPN over public wifi. If I just connected to wifi RIGHT NOW, I don't want Android to instantly launch into all of its pent-up wifi tasks until I'm connected to the VPN. Ideally, I'd prefer that Android not even broadcast the notification that I'm now wifi-connected until after the VPN is up. If the VPN drops, I want traffic blocked (or routed over AT&T) until the VPN is re-established.

  • My home wifi. I could live with VPN'ing this if it's impossible to distinguish between "my wifi" and "all other wifi", but I'd prefer to not VPN it either.

I know that Tasker can theoretically achieve most of these goals, except for one problem: AFAIK, nobody has written a Tasker VPN plugin that works with ICS. Does one exist yet that I've overlooked?

That leaves the second problem -- leaked traffic during the interval between the time the wifi connects and the VPN is established, and traffic leaked if the VPN dies for some reason while the wifi remains connected. Is there any way to fix THIS problem?

share|improve this question

1 Answer 1

I'm using the Private Internet Access app for the same situation. It has a "kill switch" to prevent the leaking. It only works with the private internet access vpn service though.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.