Skip to content

AFWall+

iptables-based per-app firewall for rooted Android phones that blocks network access

Copyleft (OSI) · GPL-3.0
  • Android

Listed by , founder & editor

59

Health

Active

Overview

Stars

3,547

Last commit

yesterday

Nov 2026

Repository age

14 years

since Oct 2012

Latest version

v5.0.0

Oct 2026

Contributors

–

3 active in 90 days

Releases

5

last 12 months

Language

Java

AFWall+ is a firewall app for rooted Android devices. It is written in Java and uses the Linux iptables framework to apply rules at the system level. You decide which apps can reach the network, even if they hold internet permission.

Rules can differ by connection type: WiFi, mobile data including roaming, VPN, tethering, Tor and LAN. It supports IPv4 and IPv6, custom rule scripting, boot protection, profiles, multi-user devices, password protection and Tasker or Locale automation. Logs record blocked attempts, and you can export and import rules for backup.

It supports Android 5.0 and later. You can install it from F-Droid. The code is GPL-3.0 licensed, and the volunteer-run project has been going since 2012. The latest release is v5.0.0. An unlocker key for extra features is sold through Google Play, so you can pay for it or donate. It fits users who want a rule-based alternative to closed network-control apps.

Who it's for

Privacy-conscious Android users with rooted phones

You can cut off tracking and background connections per app, by network type.

Skip if: Your phone is not rooted.

Users trying to save mobile data and battery

Blocking apps on mobile data while allowing WiFi limits unwanted traffic.

Skip if: You prefer a simple VPN-based blocker that needs no root.

Power users who automate their devices

Rule scripting and Tasker integration let you script firewall changes.

Skip if: You do not want to write or maintain custom rules.

The problem it solves

Android permissions only say whether an app may use the internet, not when or over which network. AFWall+ lets you block or allow each app by connection type and see what was blocked.

Strengths

  • Per-app rules for WiFi, mobile, VPN, tethering, Tor and LAN
  • Uses kernel-level iptables, so it works however an app connects
  • IPv4 and IPv6 support with custom rule scripting
  • Available from F-Droid under GPL-3.0
  • Rules can be exported and imported for backup

Trade-offs

  • Requires a rooted device
  • Maintenance is slowing, with 2 contributors in the last 90 days
  • Some extra features need a paid unlocker key
  • Android only

Frequently asked questions

Does AFWall+ need root?

Yes. It is built for rooted Android devices and relies on iptables.

Is it free?

The app is open source under GPL-3.0. An unlocker key for extra features is available through Google Play or by donating.

Which Android versions work?

Android 5.0 (API 21) and later, including 14 and newer.

Where can I get it?

It is available on F-Droid, and you can also get it from the project's releases.

Similar tools in Firewalls and network security

BlockAds: Clean Internet

Firewalls and network security

Android ad and tracker blocker using local VPN DNS filtering, with an optional root mode

2.8k 176 today Thriving GPL-3.0

TrackerControl

Firewalls and network security

Android app that shows which companies track you and blocks it, without root

2.8k 144 8 days ago Thriving GPL-3.0

ShizuWall

Firewalls and network security

Android firewall that blocks apps per package without using a VPN

2.6k 75 2 days ago Thriving GPL-3.0

Blocker

Firewalls and network security

Android component manager that disables unneeded app components via Intent Firewall

2.5k 103 today Active Apache-2.0

UUSEC WAF

Firewalls and network security

Self-hosted web application firewall built on nginx and LuaJIT, with semantic attack

1.7k 167 yesterday Active BSD-2-Clause

DNSNet

Firewalls and network security

On-device DNS ad and malware blocker for Android, no root needed

991 44 today Thriving GPL-3.0