Is there a way to use both a firewall and a vpn app on android. I have tried allowing the vpn through the firewall but one invaraibly goes off when I start the other. Is there some way around this -- to establish two tunnels at the same time.
The firewall not stablish a tunnel, this only open or close ports, you can use but you need not close ports of VPN and maybe network of VPN can use other proxy if for example is you home network and you use firewall on your home router. You can use firewall and VPN, both, but is important that firewall not close ports of your VPN.
No, is isn't possible on Android to do this. But I would suggest setting up your firewall policy on the other endpoint of the VPN tunnel (the remote end) which will have the same effect as a local firewall policy.
I suspect you use the VPN to tunnel home? In your VPN router or home firewall that you tunnel to, there you can put rules which traffic are allowed to exit from VPN interface to internet.
With a rooted phone I've hear you Can just use iptables for your firewall like you would on a laptop or server (if not just search for one a different firewall). As for the VPN just use OpenVPN or use the GUI app or regular Android setting. You also might just be able to manually change the routing tables to go to the firewall apps look back adresse out that interface and from there to the VPN interface and out to the web. I'm thinking some one needs to develop a app (I'm guessing Google's api would allow) because I'm not going to root my phone and would like to use a VPN and a local firewall!