[APP][6.0+] NetGuard - No-root firewall

What are you mainly using NetGuard for?

  • Reducing data usage

    Votes: 419 30.8%
  • Saving battery

    Votes: 293 21.5%
  • Increasing privacy

    Votes: 728 53.5%
  • Blocking ads

    Votes: 883 64.9%

  • Total voters
    1,360
Search This thread

jawz101

Senior Member
Jun 4, 2009
1,548
793
143
Samsung Galaxy Tab S
ZTE Axon 7
How does the private dns work? Is it if I configure private DNS in regular Android, disable Internet filtering in NetGuard, then it just automatically routes through Android Private DNS but still gives me the ability to restrict per app network usage?

That may be the perfect setup. If I use NextDNS as my Android Private DNS provider I could use the Play Store version of NetGuard and still get ad blocking.
 

M66B

Recognized Developer
Aug 1, 2010
23,702
48,570
263
How does the private dns work? Is it if I configure private DNS in regular Android, disable Internet filtering in NetGuard, then it just automatically routes through Android Private DNS but still gives me the ability to restrict per app network usage?

That may be the perfect setup. If I use NextDNS as my Android Private DNS provider I could use the Play Store version of NetGuard and still get ad blocking.
Yes, this is possible with the latest version.
 

M66B

Recognized Developer
Aug 1, 2010
23,702
48,570
263
Thanks. It sounded like that's how it would work.

You may make an pop-up when you check the Internet filtering which says "Internet filtering overrides Android Private DNS.". That may make it easy to notice the change.
Let's first see if this works properly.
 

svendsvin

Senior Member
Oct 21, 2013
177
35
58
Lost in space
Please make sure you install the GitHub version. Ad blocking, etc is not available in the Play store version.

It's GitHub version. I never used Play Store.
Edit: I restored a GitHub version but apparently that's not good enough. I downloaded the GitHub version again and installed and now everything is back.
 
Last edited:

LoveWins

New member
Feb 25, 2021
4
0
1
Hello, Supporting user here, been using NetGuard for over a year and it's a perfect tool for controlling network access and filtering ads.

Something I've been noticing, when Filter Traffic is enabled, my Google Voice notifications seem to be delayed quite a bit, sometimes for 30 minutes for example. If I have a incoming message pending, I'll disable Filter Traffic and Voice will then immediately show the notification.

The filter is a necessity for ad blocking but I don't like the fact that my notifications are delayed. Is three a workaround for this issue?
 

M66B

Recognized Developer
Aug 1, 2010
23,702
48,570
263
Hello, Supporting user here, been using NetGuard for over a year and it's a perfect tool for controlling network access and filtering ads.

Something I've been noticing, when Filter Traffic is enabled, my Google Voice notifications seem to be delayed quite a bit, sometimes for 30 minutes for example. If I have a incoming message pending, I'll disable Filter Traffic and Voice will then immediately show the notification.

The filter is a necessity for ad blocking but I don't like the fact that my notifications are delayed. Is three a workaround for this issue?
Please make sure Google Play services isn't blocked, also not by an entry in the hosts file.
 

M66B

Recognized Developer
Aug 1, 2010
23,702
48,570
263
I've confirmed Google Play services is not blocked. I download the hosts file from https://netguard.me/hosts and have not modified it in any way. I assume that file does not have it blocked. Could it be anything else?
The hosts file is not managed by me:


Try to disable ad blocking.
 

halilb1978

Member
Apr 7, 2018
22
0
1
@M66B Can you share your settings as an exported file here? For the ones who use stock rom ( no root). We just need push notifications,updates and sync work. I guess many people do not know what to block safely, must block or must not block things. Or it will be nice to see your block list as screen shots. Thank you.
 

DrummerMuppet

Senior Member
Jan 3, 2012
651
534
123
Caracas
@M66B Can you share your settings as an exported file here? For the ones who use stock rom ( no root). We just need push notifications,updates and sync work. I guess many people do not know what to block safely, must block or must not block things. Or it will be nice to see your block list as screen shots. Thank you.

As a rule of thumb: avoid blocking system apps unless you know what you're doing.
 
  • Like
Reactions: lukval and Ines*

M66B

Recognized Developer
Aug 1, 2010
23,702
48,570
263
@M66B Can you share your settings as an exported file here? For the ones who use stock rom ( no root). We just need push notifications,updates and sync work. I guess many people do not know what to block safely, must block or must not block things. Or it will be nice to see your block list as screen shots. Thank you.
Which apps I use is personal.
 
  • Like
Reactions: halilb1978

halilb1978

Member
Apr 7, 2018
22
0
1
Which apps I use is personal.
I only use google playstore, framework and services. All other google apps,options are removed,disabled,blocked. Everthing works fine. I blocked many apps and service packs on Netguard. 318 allowed and 107 blocked on Netguard. Traffic filter on. I wanted to learn what more i can block safely from system services. Try and learn???
 

LoveWins

New member
Feb 25, 2021
4
0
1
The hosts file is not managed by me:


Try to disable ad blocking.
I think that was my original inquiry if I'm understanding NetGuard options correctly, "Filter Traffic" is ad blocking?
When Filter Traffic is disabled notifications are instantaneous, with Filter Traffic enabled, notifications are delayed.

Hope I'm explaining this correctly.
 

DrummerMuppet

Senior Member
Jan 3, 2012
651
534
123
Caracas
Trying to learn more :)
I only use google playstore, framework and services. All other google apps,options are removed,disabled,blocked. Everthing works fine. (...) I wanted to learn what more i can block safely from system services. Try and learn???

There's nothing wrong with wanting to learn how stuff works. That's perfectly fine. You can start by checking the FAQ section to know what can be blocked and what should be left alone (there are at least 3 FAQs that address this in one way or another.)

You could also just block things at random / everything, see what breaks and then undo whatever you did to get things working again. "Try and learn" as you said, that's a completely valid strategy too.

We can't tell you exactly what to block because we don't know how you use your phone, what your goal is (is it more privacy? Experimentation? Reduce data usage?), nor which apps you have installed on it.
 

halilb1978

Member
Apr 7, 2018
22
0
1
There's nothing wrong with wanting to learn how stuff works. That's perfectly fine. You can start by checking the FAQ section to know what can be blocked and what should be left alone (there are at least 3 FAQs that address this in one way or another.)

You could also just block things at random / everything, see what breaks and then undo whatever you did to get things working again. "Try and learn" as you said, that's a completely valid strategy too.

We can't tell you exactly what to block because we don't know how you use your phone, what your goal is (is it more privacy? Experimentation? Reduce data usage?), nor which apps you have installed on it.
I do not use lot apps. I only need notifications and updates work. Telegram,Signal,Outlook,Excell,Twitter,Bixby Routines,Newpipe,Netguard,Samsung İnternet Browser,Duckduckgo,F-droid,Proton Vpn, Torrent Client,Google Play Store,Galaxy Store. If theses notifications and updates work stabil, i do not need more. I want to have more battery time.i even deleted my facebook,instagram and whatsapp accounts after their privacy update.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Yes it works fine for DoT but Ad blocking in NetGuard is not ok in this case with private DNS defined in Android.

    You wrote that NetGuard has to be defined with traffic filter off and subnet routing on, to permit private DNS to be active.

    In my test today with private DNS, traffic filter was on and subnet routing off in NetGuard.

    I am a little confused.

    Do you have an explanation ?

    Thanks in advance for your reply.
    You can't use ad blocking with filtering disabled and you can't use filtering with private DNS enabled.
    2
    I don't see that setting in Network Settings, unless the Lockdown Wi-Fi setting actually allows LAN access over the WiFi?
    You must first enable Subnet routing to be able to enable LAN access. Both settings are in the Network settings.
    2
    If private DNS is enabled (in Android settings) and NetGuard in filtering mode, what would be the technical consequence ?
    With private DNS enabled NetGuard can't see the domain names anymore. So, blocking domain names won't work anymore.
    2
    I have defined DNS with Quad9 addresses :
    9.9.9.9
    149.112.112.112
    and in Android settings "private DNS" is not activated
    With these settings you use a private dns!

    My settings are:
    Screenshot_20210315-214603_NetGuard.jpg



    Or am I misunderstanding something?

    Answer to question (63):
    "If you don't trust the system (Google's) or your provider's DNS servers, you can set alternative DNS servers in the advanced settings. Be sure to enter and confirm the addresses and to set two DNS server addresses. If you enter just one DNS server address, it will be used in addition to the default DNS server addresses."
    1
    Hi, I would like to setup private dns (adguard) in netguard but I'm not sure if I'm setting things up correctly, may I know if this is correct? Thank you
    You have to use these two fields with the IPV4-Adresses of Adguard-DNS.
    Screenshot_20210313-214206_NetGuard.jpg
  • 339
    ic_launcher.png


    NetGuard provides simple and advanced ways to block access to the internet - no root required.
    Applications and addresses can individually be allowed or denied access to your Wi-Fi and/or mobile connection.

    Blocking access to the internet can help:
    • reduce your data usage
    • save your battery
    • increase your privacy

    Features:
    • Simple to use
    • No root required
    • 100% open source
    • No calling home
    • No tracking or analytics
    • No advertisements
    • Actively developed and supported
    • Android 5.1 and later supported
    • IPv4/IPv6 TCP/UDP supported
    • Tethering supported
    • Optionally allow when screen on
    • Optionally block when roaming
    • Optionally block system applications
    • Optionally forward ports, also to external addresses (not available if installed from the Play store)
    • Optionally notify when an application accesses the internet
    • Optionally record network usage per application per address
    • Optionally block ads using a hosts file (not available if installed from the Play store)
    • Material design theme with light and dark theme

    PRO features
    • Log all outgoing traffic; search and filter access attempts; export PCAP files to analyze traffic
    • Allow/block individual addresses per application
    • New application notifications; configure NetGuard directly from the notification
    • Display network speed graph in a status bar notification
    • Select from five additional themes in both light and dark version

    There is no other no-root firewall, except for clones, offering all these features.

    This XDA thread is about using the latest version of NetGuard.
    Off topic comments are allowed as long they are related to NetGuard and are in the general interest of the followers of this thread.

    Discussion of purchases is not allowed here, please contact me via here instead.

    NetGuard is being maintained and supported, but new features won't be added anymore.

    For ad blocking, see here. Ad blocking is provide "as-is".

    More information on Github:

    Downloads:

    Screenshots:
    101-main.png
    102-main-details.png

    103-main-access.png
    108-notifications.png


    For more screenshots, see here.






    XDA:DevDB Information
    NetGuard, App for all devices (see above for details)

    Contributors
    M66B
    Source Code: https://github.com/M66B/NetGuard/


    Version Information
    Status: Stable

    Created 2015-10-25
    Last Updated 2020-03-11
    25
    25
    I have just released stable version 2.39.

    Changelog/download
    https://github.com/M66B/NetGuard/releases/tag/2.39

    This version will be available in the Play store after Google's approval.

    Usage data sharing has been removed from this version.

    The future of this project depends on the general support for this project. You can for example write something positive here or in the Play store, press the thanks button, donate something, purchase a pro feature or contribute translations or source code.
    17
    I have just released beta version 2.268

    Changelog/download:
    https://github.com/M66B/NetGuard/releases

    This version adds a setting for a domain name to use to validate the internet connection. The default is www.google.com. You could for example change this into www.opendns.com.
    17
    I have just released beta version 2.21.

    Changelog/download:
    https://github.com/M66B/NetGuard/releases/tag/2.21

    This version will be available as beta version in the Play store after Google's approval.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone