2015-10-24 17:59:20 +00:00
# NetGuard
2015-10-24 18:01:55 +00:00
2015-10-26 10:12:35 +00:00
NetGuard is possibly the first free and open source no-root firewall for Android.
2015-10-25 12:02:25 +00:00
2015-10-25 12:48:35 +00:00
< img src = "screenshot.png" width = "232" height = "371" hspace = "4" / >
2015-10-25 13:21:14 +00:00
Features
--------
* No root required
* Simple to use
2015-10-26 10:12:35 +00:00
* Free of charge
* Open source
2015-10-25 15:16:20 +00:00
* No extra battery usage
2015-10-25 13:21:14 +00:00
* No calling home
2015-10-26 10:12:35 +00:00
* No tracking or analytics
2015-10-25 13:21:14 +00:00
* No ads
2015-10-26 12:43:37 +00:00
* IPv4/IPv6 TCP/UDP supported
2015-10-25 13:21:14 +00:00
2015-10-26 10:12:35 +00:00
NetGuard doesn't even require the *internet* permission!
2015-10-25 15:59:15 +00:00
2015-10-25 13:06:16 +00:00
Usage
-----
* Enable the firewall using the switch in the action bar
2015-10-26 10:12:35 +00:00
* Allow/deny WiFi/mobile internet access using the icons at the right side of the application list
2015-10-25 12:02:25 +00:00
2015-10-25 13:21:14 +00:00
Permissions
-----------
2015-10-26 10:12:35 +00:00
* ACCESS_NETWORK_STATE: to check if the device is connected to the internet through WiFi
2015-10-25 13:21:14 +00:00
* RECEIVE_BOOT_COMPLETED: to start the firewall when starting the device
2015-10-26 10:12:35 +00:00
Frequently Asked Questions (FAQ)
--------------------------------
2015-10-25 12:13:52 +00:00
< a name = "FAQ1" > < / a >
2015-10-26 09:38:53 +00:00
**(1) Can NetGuard completely protect my privacy?**
2015-10-25 12:13:52 +00:00
2015-10-26 09:38:53 +00:00
No - nothing can completely protect your privacy.
NetGuard will do its best, but it is limited by the fact it must use the VPN service.
This is the trade-off required to make a firewall which does not require root access.
2015-10-26 13:32:14 +00:00
The firewall can only start when Android "allows" it to start,
so it will not offer protection during early boot-up (although your network may not be loaded at that time).
2015-10-26 10:12:35 +00:00
It will, however, be much better than nothing, especially if you are not rebooting often.
2015-10-26 09:38:53 +00:00
2015-10-26 10:12:35 +00:00
If you want to protect yourself more, you can (at least in theory) disable WiFi and mobile data before rebooting,
2015-10-26 09:38:53 +00:00
and only enable them on reboot, after the firewall service has started (and the small key icon is visible in the status bar).
Thanks @[pulser](https://github.com/pulser/)
2015-10-25 12:13:52 +00:00
2015-10-25 13:25:42 +00:00
< a name = "FAQ2" > < / a >
**(2) Can I use VPN applications while using NetGuard?**
2015-10-25 13:49:56 +00:00
If the VPN application is using the [VPN service ](http://developer.android.com/reference/android/net/VpnService.html ),
2015-10-26 10:12:35 +00:00
then no, because NetGuard needs to use this service, and Android allows only one application at a time to use this service.
2015-10-25 12:13:52 +00:00
2015-10-25 13:49:56 +00:00
< a name = "FAQ3" > < / a >
**(3) Can I use NetGuard on any Android version?**
No, because the method [addDisallowedApplication ](http://developer.android.com/reference/android/net/VpnService.Builder.html#addDisallowedApplication(java.lang.String ))
2015-10-26 10:12:35 +00:00
is being used, the minimum required Android version is 5.0 (Lollipop).
2015-10-25 13:49:56 +00:00
2015-10-25 15:36:14 +00:00
< a name = "FAQ4" > < / a >
**(4) Will NetGuard use extra battery power?**
No, unlike most of the similar closed source alternatives.
2015-10-26 16:47:31 +00:00
< a name = "FAQ5" > < / a >
**(5) Can you add selective allowing/blocking addresses?**
2015-10-26 16:45:52 +00:00
Unfortunately this is not possible without sacrificing quite some battery power
and adding a lot of complex code to do network translation from OSI layer 3 to layer 4
(and thus implementing a TCP/IP stack), which will inevitably introduce bugs as well.
This is how most (all?) other no root firewall work. NetGuard is unique,
because it doesn't implement a TCP/IP stack and is therefore both highly efficient and simple.
2015-10-25 15:36:14 +00:00
2015-10-25 13:36:49 +00:00
Support
-------
2015-10-26 10:12:35 +00:00
* Questions: please [use this XDA-Developers forum thread ](http://forum.xda-developers.com/showthread.php?t=3233012 )
* Feature requests and bugs: please [report an issue on GitHub ](https://github.com/M66B/NetGuard/issues/new )
2015-10-25 13:36:49 +00:00
Please do not use GitHub for questions.
2015-10-25 12:02:25 +00:00
Contributing
------------
2015-10-26 08:06:39 +00:00
Translations:
* Translations to other languages are welcomed
* Check if the language [is supported by Android ](http://stackoverflow.com/questions/7973023/what-is-the-list-of-supported-languages-locales-on-android ) and find its locale
* Copy [this file ](https://github.com/M66B/NetGuard/blob/master/app/src/main/res/values/strings.xml ) to the correct locale folder
* Translate the strings in the copied file and omit all lines with **translatable="false"**
2015-10-26 10:12:35 +00:00
* Create a [pull request on GitHub ](https://help.github.com/articles/using-pull-requests ) for the new/updated translation
2015-10-26 08:06:39 +00:00
2015-10-25 12:02:25 +00:00
Please note that you agree to the license below by contributing, including the copyright.
License
-------
[GNU General Public License version 3 ](http://www.gnu.org/licenses/gpl.txt )
Copyright (c) 2015 Marcel Bokhorst ([M66B](http://forum.xda-developers.com/member.php?u=2799345))
All rights reserved
This file is part of NetGuard.
NetGuard is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your discretion) any later version.
NetGuard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see [http://www.gnu.org/licenses/ ](http://www.gnu.org/licenses/ ).