NetGuard/FAQ.md

317 lines
14 KiB
Markdown
Raw Normal View History

2015-11-17 12:47:59 +00:00
NetGuard
========
2015-11-18 07:17:25 +00:00
Please scroll down if you want to ask a question, request a feature or report a bug.
2015-11-17 12:47:59 +00:00
Frequently Asked Questions (FAQ)
--------------------------------
2015-11-29 07:24:20 +00:00
<a name="FAQ0"></a>
2015-11-29 10:43:07 +00:00
**(0) How do I use NetGuard?**
2015-11-29 07:24:20 +00:00
* Enable the firewall using the switch in the action bar
* Allow/deny Wi-Fi/mobile internet access using the icons along the right side of the application list
2015-11-29 15:38:54 +00:00
You can use the settings menu to change from blacklist mode (allow all in *Settings* but block unwanted applications in list) to whitelist mode (block all in *Settings* but allow favorite applications in list).
2015-11-29 10:43:07 +00:00
2016-01-03 08:10:12 +00:00
* Red/orange/yellow/amber = internet access denied
* Teal/blue/purple/grey = internet access allowd
2015-11-29 07:24:20 +00:00
2015-11-17 12:47:59 +00:00
<a name="FAQ1"></a>
**(1) Can NetGuard completely protect my privacy?**
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.
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).
It will, however, be much better than nothing, especially if you are not rebooting often.
If you want to protect yourself more, you can (at least in theory) disable Wi-Fi and mobile data before rebooting,
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/)
<a name="FAQ2"></a>
2015-11-17 14:29:59 +00:00
**(2) Can I use another VPN application while using NetGuard**
2015-11-17 12:47:59 +00:00
If the VPN application is using the [VPN service](http://developer.android.com/reference/android/net/VpnService.html),
then no, because NetGuard needs to use this service. Android allows only one application at a time to use this service.
<a name="FAQ3"></a>
**(3) Can I use NetGuard on any Android version?**
2015-12-12 15:09:53 +00:00
No, the minimum required Android version is 5.0 (Lollipop)
because NetGuard uses the [addDisallowedApplication](http://developer.android.com/reference/android/net/VpnService.Builder.html#addDisallowedApplication(java.lang.String)) method.
2015-11-17 12:47:59 +00:00
<a name="FAQ4"></a>
**(4) Will NetGuard use extra battery power?**
No, unlike most of the similar closed source alternatives.
2015-12-14 07:33:04 +00:00
However, the network speed graph notification will use extra battery power.
This is why the notification is shown only when the screen is on.
You can decrease the update frequency using the settings to reduce the battery usage.
2015-11-17 12:47:59 +00:00
<a name="FAQ5"></a>
2015-12-12 15:09:53 +00:00
**(5) Can you add usage statistics?**<br />
**(5) Can you add popups to allow/block applications?**<br />
2015-11-17 12:47:59 +00:00
**(5) Can you add selective allowing/blocking applications/IP addresses?**
Unfortunately, this is not possible without using significant battery power
and adding 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 (perhaps all) other no-root firewalls work.
NetGuard is unique, because it doesn't implement a TCP/IP stack, and is therefore both highly efficient and simple.
For more advanced use cases, rooting your device and using an iptables based firewall,
like [AFWall+](https://github.com/ukanth/afwall), might be a better option and will not sacrifice any battery power.
<a name="FAQ6"></a>
**(6) Will NetGuard send my internet traffic to an external (VPN) server?**
2016-02-19 10:50:29 +00:00
No, depending on the mode of operation basically one of two things will happen with your internet traffic:
* When IP filtering is disabled, blocked internet traffic will be routed into the local VPN which will operate as sinkhole (in effect dropping all blocked traffic)
* When IP filtering is enabled, both blocked and allowed internet traffic will be routed into the local VPN and only allowed traffic will be forwarded to the intended destination (so not to a VPN server)
2015-11-17 12:47:59 +00:00
<a name="FAQ7"></a>
**(7) Why are applications without internet permission shown?**
Internet permission can be granted with each application update without user consent.
By showing all applications, NetGuard allows you to control internet access even *before* such an update occurs.
2015-11-17 12:47:59 +00:00
<a name="FAQ8"></a>
2015-11-29 15:56:29 +00:00
**(8) What do I need to enable for the Google Play™ store app to work?**
2015-11-17 12:47:59 +00:00
You need 3 packages (applications) enabled (use search in NetGuard to find them quickly):
* com.android.vending
* com.google.android.gms
* com.android.providers.downloads
2015-11-29 15:56:29 +00:00
Since the Google Play™ store app has a tendency to check for updates or even download them all by itself (even if no account is associated),
2015-11-17 12:47:59 +00:00
one can keep it in check by enabling "*Allow when device in use*" for all 3 of these packages.
Click on the down arrow on the left side of an application name and check that option,
but leave the network icons set to red (hence blocked).The little human icon will appear for those packages.
<a name="FAQ9"></a>
2015-11-17 14:29:59 +00:00
**(9) Why is the VPN service being restarted?**
2015-11-17 12:47:59 +00:00
The VPN service will be restarted when you turn the screen on or off and when connectivity changes (Wi-Fi, mobile)
to apply the rules with the conditions '*Allow when screen is on*' and '*Block when roaming*'.
<a name="FAQ10"></a>
**(10) Will you provide a Tasker plug-in?**
If disabling NetGuard is allowed to Tasker, any application can disabled NetGuard too.
Allowing to disable a security application from other applications is not a good idea.
<a name="FAQ12"></a>
**(12) Can you add on demand asking to block/allow access?**
Besides that this requires questionable Android permissions,
it is not possible to implement this, given the way NetGuard works.
For more details, see [question 5](#FAQ5).
<a name="FAQ13"></a>
**(13) How can I remove the ongoing NetGuard entry in the notification screen?**
* Long click the NetGuard notification
* Tap the 'i' icon
2016-01-09 22:50:04 +00:00
* Depending on your device and/or ROMs manufacturer software customizations, you can be directed to either:
2015-11-17 12:47:59 +00:00
* the **App Info** screen and you can uncheck '*Show notifications*' and agree to the next dialog
* the **App Notifications** screen and you can toggle the '*Block*' slider to on
2016-01-06 14:20:14 +00:00
Note that, whether or not you get a dialog warning to agree upon,
this operation will disable any information or warning notifications from NetGuard as well,
like the new application installed notification.
2015-11-17 12:47:59 +00:00
To read about the need for the notification in the first place, see [question 24](#FAQ24).
2015-11-29 10:43:07 +00:00
2015-11-17 12:47:59 +00:00
<a name="FAQ14"></a>
**(14) Why can't I select OK to approve the VPN connection request?**
There might be another application on top of the VPN connection request dialog.
Some known (screen dimming) applications which can cause this are *Lux Brightness*, *Night Mode* and *Twilight*.
2015-11-17 12:47:59 +00:00
To avoid this problem, at least temporary, close all applications and/or services which may be running in the background.
<a name="FAQ15"></a>
2015-11-17 14:29:59 +00:00
**(15) Why won't you support the F-Droid builds?**
2015-11-17 12:47:59 +00:00
Because F-Droid doesn't support reproducible builds.
Read [here](https://blog.torproject.org/blog/deterministic-builds-part-one-cyberwar-and-global-compromise) why this is important.
<a name="FAQ16"></a>
**(16) Why are some applications shown dimmed?**
Disabled applications and applications without internet permission are shown dimmed.
<a name="FAQ17"></a>
**(17) Why is NetGuard using so much memory?**
It isn't, NetGuard doesn't allocate any memory, except a little for displaying the user interface elements.
2015-11-29 15:56:29 +00:00
It appeared that on some Android variants the Google Play™ store app connection, using almost 150 MB and needed for in-app donations,
is incorrectly attributed to NetGuard instead to the Google Play™ store app.
2015-11-17 12:47:59 +00:00
<a name="FAQ18"></a>
2015-11-29 15:56:29 +00:00
**(18) Why can't I find NetGuard in the Google Play™ store app?**
2015-11-17 12:47:59 +00:00
2015-11-29 15:56:29 +00:00
NetGuard requires at least Android 5.0, so it is not available in the Google Play™ store app for devices running older Android versions.
2015-11-17 12:47:59 +00:00
Some devices have an Android version with a bug in the services NetGuard depends upon.
2015-11-29 15:58:29 +00:00
These devices are blacklisted in the Google Play™ store app. Read about them in the [compatibility section](https://github.com/M66B/NetGuard#compatibility).
2015-11-17 12:47:59 +00:00
<a name="FAQ19"></a>
2015-11-17 14:29:59 +00:00
**(19) Why does aplication XYZ still have internet access?**
2015-11-17 12:47:59 +00:00
If you block internet access for an application, there is no way around it.
However, applications could access the internet through other applications, like Google Play services.
You can prevent this by blocking internet access for the other application as well.
2016-01-03 08:10:12 +00:00
Note that some applications keep trying to access the internet,
which is done by sending a connection request packet.
This packet goes into the VPN sinkhole when internet access for the application is blocked.
This packet consists of less than 100 bytes and is counted as outgoing traffic
and will be visible in the speed graph notification as well.
2015-11-17 12:47:59 +00:00
<a name="FAQ20"></a>
2015-11-17 14:29:59 +00:00
**(20) Can I Greenify/hibernate NetGuard?**
2015-11-17 12:47:59 +00:00
No. [Greenifying](https://play.google.com/store/apps/details?id=com.oasisfeng.greenify)
or otherwise hibernating NetGuard will result in rules not being applied
when connectivity changes from Wi-Fi/mobile, screen on/off and roaming/not roaming.
2015-11-23 13:23:35 +00:00
<a name="FAQ21"></a>
**(21) Does doze mode affect NetGuard?**
I am not sure, because the [doze mode documentation](http://developer.android.com/training/monitoring-device-state/doze-standby.html)
is not clear if broadcast receivers will be disabled in doze mode.
If broadcast receivers are being disabled, then the rules might not be reloaded at the correct time or not at all
when connectivity changes from Wi-Fi to mobile or the other way around.
To be sure you can disable battery optimizations for NetGuard manually like this:
```
Android settings > Battery > three dot menu > Battery optimizations > Dropdown > All apps > NetGuard > Don't optimize > Done
```
This cannot be done from the application, because NetGuard is not an application type allowed to do this.
2015-11-23 17:20:32 +00:00
<a name="FAQ22"></a>
2015-12-25 07:36:13 +00:00
**(22) Can I tether / use Wi-Fi calling while using NetGuard?**
2015-11-23 17:20:32 +00:00
Due to a bug in Android this is not possible.
See [here](https://github.com/M66B/NetGuard/issues/42) for more information.
2015-11-29 07:24:20 +00:00
<a name="FAQ24"></a>
2015-11-29 20:08:49 +00:00
**(24) Can you remove the notification from the status bar?**
2015-11-29 07:24:20 +00:00
Android can kill background services at any time.
This can only be prevented by turning a background service into a foreground service.
Android requires an ongoing notification for all foreground services
2016-01-09 22:50:04 +00:00
to make you aware of potential battery usage.
2015-11-29 07:24:20 +00:00
So, the notification cannot be removed without causing instability.
However, the notification is being marked as low priority,
which should result in moving it to the bottom of the list.
2015-11-29 07:24:20 +00:00
2015-12-26 07:34:18 +00:00
<a name="FAQ25"></a>
**(25) Can you add a 'select all'?**
There is no need for a select all function,
because you can switch from black list to white list mode using the settings.
See also [question 0](#FAQ0).
2016-01-08 18:07:58 +00:00
<a name="FAQ27"></a>
**(27) How do I read the blocked traffic log?**
The columns have the following meaning:
1. Time (tap on a log entry to see the date)
1. Wi-Fi / mobile connection
1. Interactive state (screen on)
1. Protocol (see below)
1. Port (tap on a log entry to lookup a port)
1. Packet flags (see below)
1. Application icon (tap on a log entry to see the application name)
2016-01-08 18:07:58 +00:00
1. Application uid
1. IPv4 or IPv6 address (tap on a log entry to lookup an IP address)
2016-01-08 18:07:58 +00:00
2016-01-22 10:28:29 +00:00
From version 0.77:
1. Time (tap on a log entry to see the date)
1. Application icon (tap on a log entry to see the application name)
1. Application uid
1. Wi-Fi / mobile connection, green=allowed, red=blocked
1. Interactive state (screen on)
1. Protocol (see below) and packet flags (see below)
1. Source and destination port (tap on a log entry to lookup a destination port)
1. Source and destination IPv4 or IPv6 address (tap on a log entry to lookup a destination IP address)
2016-01-08 18:07:58 +00:00
Protocols:
* I = ICMP
* T = TCP
* U = UDP
* Number = one of the protocols in [this list](https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers)
2016-01-26 08:09:00 +00:00
* 4 = IPv4
* 6 = IPv6
2016-01-08 18:07:58 +00:00
Packet flags:
* S = SYN
* A = ACK
* P = PSH
* F = FIN
* R = RST
For a detailed explanation see [here](https://en.wikipedia.org/wiki/Transmission_Control_Protocol).
2016-01-09 15:38:07 +00:00
<a name="FAQ28"></a>
**(28) Why is Google connectivity services allowed internet access by default?**
The Google connectivity services system application checks if the current network is really connected to the internet.
This is probably done by briefly connecting to some Google server.
If this is not the case, there will be an '!' in the Wi-Fi or mobile icon in the system status bar.
Recent Android versions seem not to switch connectivity from mobile to Wi-Fi when the Wi-Fi network is not really connected,
even though there is a connection to the Wi-Fi network (or the other way around).
To prevent a bad user experience there is a predefined rule to default allow the Google connectivity services.
You can find all predefined rules [here](https://github.com/M66B/NetGuard/blob/master/app/src/main/res/xml/predefined.xml).
2016-01-21 12:50:53 +00:00
<a name="FAQ29"></a>
**(29) Why do I get 'The item you requested is not available for purchase'?**
You can only purchase pro feature when you installed NetGuard from the Play store.
<a name="FAQ30"></a>
**(30) Can I also run AFWall+ on the same device?**
2016-02-21 15:50:56 +00:00
Unless you are just testing NetGuard, there is no current reason to use them both, since they cover the same function (firewall),
although with different base needs (AFWall+ needs a rooted device) and ways of doing their thing (AFWall+ uses iptables).
2016-02-21 15:50:56 +00:00
Also you need to keep per applicaton access rules _always_ in sync,
else the application will not be able to access the network,
hence bringing another level of complexity when setting and assuring things work out.
Some pointers on how to set up AFWall+:
* if not using filtering in NetGuard, applications _need_ direct internet access (Wi-Fi and/or mobile) in AFWall+
* if using filtering, NetGuard will _need_ internet access (Wi-Fi and/or mobile) in AFWall+
* if using filtering, when you un/reinstall NetGuard, remember to RE-allow NetGuard in AFWall+
* if using filtering, applications _need_ VPN internet access (check the box to show that option in AFWall+ settings)
2016-02-21 15:50:56 +00:00
<a name="FAQ31"></a>
**(31) Which hosts file should I use?**
There is no conclusive answer to this question, but my advice is to use a hosts file which is at least maintained.
You can find some suggestions [here](https://github.com/M66B/NetGuard/issues/277),
2016-02-21 15:52:07 +00:00
where you also can find which hosts file *netguard.me/hosts* serves.
2016-02-21 15:50:56 +00:00
2015-11-23 13:29:58 +00:00
<br />
2016-01-09 22:50:04 +00:00
**If you didn't find the answer to your question, you can ask your questions [here](http://forum.xda-developers.com/showthread.php?t=3233012)**.
2015-11-17 17:52:05 +00:00
If you want to request a new feature or want to report a bug, please [create an issue on GitHub](https://github.com/M66B/NetGuard/issues/new).
2016-02-21 15:50:56 +00:00