How to exclude specific apps from using the VPN connection on Android?

by Nikhil Alex George   Last Updated September 28, 2017 00:11 AM

Im trying to exclude certain apps from using the VPN connection that is created on android so that those apps make a direct/proxy connection rather than through the VPN server. I use OpenVPN for Android (supports IP exclusions) and proxydroid (a proxy wrapper/proxifier app).

When i looked up, it says most of the VPNs supports an IP/CIDR/domain based routing rather than application specific routing. And also certain apps can be forced through VPN by using a virtual machine(running VPN inside VM) based solution while the rest of apps make a direct connection. But i am not looking for a virtual machine based solution. I also found two other methods to force only certain apps through the VPN :-
Method 1) Configure and use a proxy at the other end of the VPN connection. Configure the client-side applications to use the proxy. Method 2) Add another local IP to your network interface and bind all applications that need to be sent strictly through the VPN to this interface. On linux, the use of the 'ip route' and 'ip rule' commands will allow you to define additional non-default routing tables and map to them based on the source address .

How do i use these methods on Android?I am thinking of binding a particular app to a particular ip and port using proxydroid and then use the force binding method. How do i use this force binding method on android?

If its not possible through that method, is there any other method (Such as split tunneling)?

Tags : vpn openvpn


Answers 1


Solution:-

1) Run proxydroid app and selected the apps to be routed through the proxy server. Specify the host, port and proxy type of the proxy server under proxy settings.

2) Exclude the ip of the proxy server used in the VPN app. You can use 'OpenVPN for Android' app.Go to the settings for the VPN server and add ips to be excluded in CIDR format .(under the 'routing' tab)

3)Connect to VPN and then enable proxydroid.

This will allow apps to use a proxy and excludes it from using VPN connection.

Nikhil Alex George
Nikhil Alex George
January 22, 2017 20:24 PM

Related Questions



Unable to connect to VPN through OpenVPN app

Updated July 25, 2017 10:11 AM



OpenVPN Tunneling Facebook/Gmail App

Updated March 08, 2018 04:11 AM