skullone / android_firewall

This is a fork of Droidwall by Rodrigo Zechin Rosauro - http://code.google.com/p/droidwall/
128 stars 91 forks source link

OpenVPN support? #78

Open wonderfullyrich opened 9 years ago

wonderfullyrich commented 9 years ago

Great product! This is an essential need in any computer to block outbound as well as inbound.

I use OpenVPN rather then the built-in PPTP/IPSec/L2TP within android. Specifically I use https://play.google.com/store/apps/details?id=it.colucciweb.openvpn although there are many OpenVPN clients. How hard would it be to adapt Android Firewall to detect/use a different virtual interface such as my OpenVPN client for the VPN rule listing?

This seems to be the best product for the job and I'd like to support this integration if possible. I'm not a coder, but I am very Network literate and am willing to financially support this as well.

skullone commented 9 years ago

Support for other VPN's in already built in. As long as your VPN client creates one of the supported interfaces for its tunnel it should work out of the box. If the interface is different just let me know what it is and I can add it to the code.

You can check the interface by using Busybox commands.

su busybox route

or su busybox ifconfig -a

wonderfullyrich commented 9 years ago

Hmmm... Your right. It's setting up a tun0 interface and has a default route to that. Android Firewall identified and is using that interface. I think this may be a difference between the KitKat and JellyBean. I just reverted to android 4.3 (the Wicked v10 ROM) yesterday. Android Firewall did not identify and use the interface my OpenVPN client was using on Wannamlite ROM running KitKat. I'll jump back over to 4.4.3 and let you know what I find.

skullone commented 9 years ago

KitKat changed things with VPN. I haven't released the fix yet (it will be done soon). E-mail me directly and I'll give you a beta version to test with that has the fix. androidfirewall.developer@gmail.com