Best Firewall Apps for Android to Control App Internet Access

Four Android firewalls compared by root requirement, size and what they can actually see, from NetGuard and RethinkDNS to AFWall+ and Shelter.

Firewall app icons next to a phone showing per-app network switches
Catalog
  1. Four Ways to Cut an App Off
  2. NetGuard - no-root firewall
  3. Rethink: DNS + Firewall + VPN
  4. AFWall+ (Android Firewall +)
  5. Shelter
  6. What didn't make the list
  7. Pick by the phone you have

Every app you install can open a connection whenever it likes, and Android's own controls only tell you how much data went out, never where it went. A firewall closes that gap, and on Android you have four genuinely different ways to get one. The choice depends on whether your phone is rooted, and on whether you want a per-app switch or a separate container. Root changes everything.

These four passed the same conditions: installable today on a normal phone, control per app rather than by total data, and a clear answer on root. Sizes below are the APK downloads from this store, not the installed footprint. Three work without root, one refuses to run without it, and the last takes a different route by putting apps in a box.

Four Ways to Cut an App Off

Pick

Developer

Best at

Size

Root

NetGuard

Marcel Bokhorst

A per-app switch on an unrooted phone

3.2 MB

No

Rethink: DNS + Firewall + VPN

Celzero

Showing which domains each app contacts

76.0 MB

No

AFWall+ (Android Firewall +)

portgenix

Rules that hold from the moment the phone boots

13.1 MB

Yes

Shelter

PeterCxy

Freezing an app so it can't start at all

2.3 MB

No

None of these is a paid subscription. Two sell one-time extras, one is free with no paid tier, and one has no purchases at all.

NetGuard - no-root firewall

A per-app switch that fits in a 3 MB download.

NetGuard does one thing: block internet access per app, separately for Wi-Fi and mobile data. Tap an app to switch off its Wi-Fi access, tap again to switch off mobile, and the app keeps working offline while the rest of the phone carries on. That granularity is the whole product, and it's why the app has stayed popular for years without adding a browser or a VPN service.

It works through a local VPN, which is what makes it possible without root. Nothing is sent to a server, and the app declares no analytics, no tracking and no ads. There's a useful extra switch to block traffic when the screen is off, and a notification when a newly installed app goes online for the first time.

The free version covers blocking. The paid upgrade, a one-time purchase, adds the full traffic log with search and filtering, address-level rules per app, PCAP export for analysis, a speed graph in the status bar and extra themes. If you only want to stop a shopping app from phoning home, you never need it.

Three costs worth knowing. It holds the VPN slot, so no other VPN can run alongside it. When a battery saver kills the process, the tunnel drops and every app is back online, so exclude it from optimization. And it can't see inside HTTPS, so it blocks connections, not ads, and an ad that arrives on an app's own allowed connection still loads.

Developer

Size

Android

Root

Price

Marcel Bokhorst (FairCode BV)

3.2 MB

6.0+

No

Free, paid extras

Pros:

  • Blocks Wi-Fi and mobile data separately for each app
  • No ads, no tracking, no account
  • 3.2 MB and runs on Android 6
  • Paid extras cost one payment

Cons:

  • Takes the only VPN slot
  • Traffic log and address rules sit behind the paid version
  • Rules stop if the system kills the app

NetGuard - no-root firewall

A simple way to block access to the internet per application

Download APK

Rethink: DNS + Firewall + VPN

A firewall that names the hosts, not just the megabytes.

RethinkDNS runs a firewall and its own DNS resolver in the same local VPN, which is why its connection log can tell you that a game contacted five ad servers in the last hour instead of just showing a byte count. That log is the feature the others don't match, and it's the reason to accept a 76 MB download.

Per-app rules cover Wi-Fi, mobile data and background traffic separately. Blocklists handle malware and tracking domains at the DNS level, so a blocked domain never resolves at all. It also works as a WireGuard client, which means one app can hold your VPN and your firewall at the same time.

It's free, with no paid tier and no ads, under the Apache 2.0 license. That's rare in this category. Setup takes a few choices rather than one switch: pick a DNS resolver, pick a blocklist, then set rules per app. Start with the malware list only. The larger ad and tracking lists produce false positives that break shopping apps and streaming logins, and you'll spend an evening whitelisting domains instead of using the phone.

One permission needs a decision. Rethink uses Android's accessibility service to detect apps running in the background before it firewalls them. That permission is broad by design, and you're trusting the app with it. The app is open source, so the code can be checked, but the permission prompt deserves a read rather than a blind tap.

Developer

Size

Android

Root

Price

Celzero

76.0 MB

6.0+

No

Free

Pros:

  • Connection log shows the hostnames each app contacted
  • Blocklists stop malware domains before they resolve
  • Doubles as a WireGuard client
  • Free with no paid tier

Cons:

  • 76 MB, the heaviest install here
  • Needs accessibility permission for background rules
  • Blocklists break apps until you whitelist them

Rethink: DNS + Firewall + VPN

Firewall apps, use WireGuard VPN, monitor network, block malware, change DNS.

Download APK

AFWall+ (Android Firewall +)

The one that needs root, and does things the others can't.

AFWall+ is a front end for iptables, the firewall built into the Linux kernel under Android. Rules are applied below the app layer, so an app can't refuse to run behind a VPN, can't detect a filter, and can't route around it with its own networking code. If you have root, this is the strongest control on the list. Root is the price of that.

Per-app rules can differ for Wi-Fi, mobile data, roaming, VPN, tethering and the local network, which is more granularity than any local-VPN app offers. Boot protection applies the rules before other apps start, so nothing gets a free connection during the first seconds after a reboot. Profiles let you switch rule sets, Tasker integration handles automation, and password protection stops someone else from flipping switches.

It's 13.1 MB, runs from Android 5.0 to 14 and beyond, and it's free with an optional unlocker for a few extras. Root comes from Magisk, LineageOS's built-in su or SuperSU. Without root there is no functionality at all, which the developer states plainly.

The risks are real and worth saying. A wrong rule can cut your own data, including the connection you need to fix it, so export a working profile before you start editing. Some VPN apps conflict with the rules. And it isn't an ad blocker, because it decides whether a connection is allowed, not what travels inside it.

Developer

Size

Android

Root

Price

portgenix

13.1 MB

5.0+

Yes

Free, optional extras

Pros:

  • Kernel-level rules that apps can't bypass or detect
  • Separate rules for Wi-Fi, mobile, roaming, VPN and tethering
  • Applies rules before other apps boot
  • Profiles, Tasker support and a log

Cons:

  • Useless without root
  • A bad rule can cut your own connection
  • No help with ads inside allowed connections

AFWall+ (Android Firewall +)

[ROOT] AFWall+ is a front-end application for the powerful iptables firewall.

Download APK

Shelter

Isolation instead of filtering, and no internet permission of its own.

Shelter uses Android's work profile to create a second, separate space on the phone. You install or clone an app into that space, and from then on it lives under different rules: it can't see your main accounts, it can't read your main storage, and you can freeze it with one tap so it never runs in the background.

Freezing is the part that matters for network control. A frozen app can't start, can't be woken by a broadcast and can't open a connection, which is a harder stop than any firewall rule. A frozen app is a silent one. It's the right tool for the app you need twice a month and don't trust the rest of the time.

The app itself declares no internet permission, so the container can't send anything anywhere. It's 2.3 MB, needs Android 7.0 or newer, and is free under the GPLv3 with no purchases. A file shuttle moves documents between the two spaces when you need to.

Two limits. It depends entirely on the work profile implementation, so a manufacturer with a broken work profile gets a broken Shelter, and some apps refuse to run inside a work profile at all. And its last F-Droid build was published in December 2023, which is a long gap for an app handling isolation, even one this small.

Developer

Size

Android

Root

Price

PeterCxy

2.3 MB

7.0+

No

Free

Pros:

  • Frozen apps can't run or wake at all
  • No internet permission in the container app
  • Two copies of the same app on one phone

Cons:

  • Not a firewall, with no per-connection rules or logs
  • Last build dates from December 2023
  • Breaks on phones with a poor work profile implementation

Shelter

Isolate Apps / Multiple Accounts

Download APK

What didn't make the list

Island does the same work-profile job and adds app freezing and cloning, so it's a fair alternative if you want those two features. For pure network control it doesn't add anything Shelter doesn't already do, and adding a second container app to a four-item list would just be the same advice twice.

I also left out the VPN apps that advertise a firewall tab. Most of them firewall only traffic that passes through their own tunnel, which means the rule disappears the moment you disconnect.

Pick by the phone you have

Your situation

Install

Unrooted phone, want the simplest per-app switch

NetGuard

Unrooted, and you want to see what each app contacts

RethinkDNS

Rooted, and you want rules that hold at boot

AFWall+

One sketchy app you want frozen and contained

Shelter

Rooted and serious about it

AFWall+ for rules, RethinkDNS for the log

One warning before you start blocking. Android itself needs a handful of connections, and so does your bank, your carrier's voicemail and any app that sends two-factor codes. Block everything at once and the first symptom is a phone that can't receive messages, which looks like a network fault and isn't.

Start with the apps that have no business online: a torch app, a scanner, a game you play offline. Watch the log for a day, then tighten the rules on the ones that surprised you. If something breaks, the fix is one toggle away in every app on this list, which is the reason to change one app at a time.

FAQs

Do I need root for a firewall on Android?
No. NetGuard, RethinkDNS and Shelter all work on an unrooted phone. Only AFWall+ needs root, because it writes kernel firewall rules instead of routing traffic through a local VPN.
Which one blocks ads?
RethinkDNS blocks ad and tracker domains if you enable those lists, and it breaks some apps when you do. AFWall+ blocks connections, not ads. For ads inside apps that you've allowed, an ad blocker is a different tool.
Why does the firewall need a VPN connection?
A local VPN is how Android lets an app inspect traffic without root. The traffic stays on the phone and never reaches a server, but it does occupy the single VPN slot Android provides.
Can I run a firewall and a VPN at the same time?
With RethinkDNS, yes, because it includes a WireGuard client. With NetGuard, no, because it takes the VPN slot. AFWall+ works alongside a VPN since its rules sit below that layer.
Is Shelter a firewall?
No. It isolates apps in a work profile and can freeze them so they never run. That stops background connections, but it gives you no per-app rules and no log.
Back to top

Sources

We use cookies and other technologies on this website to enhance your user experience.
By clicking any link on this page you are giving your consent to our Privacy Policy and Cookies Policy.
Learn More about Policies