I would like to direct all the traffic through my VPN connection on my Android based phone (HTC Desire). The VPN works great, but problem is that when the VPN disconnects, the traffic is redirected through my regular internet, something I don't want to happen. How can I block the traffic outside the VPN?
Tell me more
×
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.
|
|
You could use DroidWall for this IF you're rooted. Just deny all traffic and then allow traffic to your VPN IP/port. If you need to use a custom script see the man page of iptables for the syntax. Here's a quick, untested example.
|
|||
|
|
