AFWall+ (Android Firewall +) - iptables based firewall for Android
Java
3,501
1,827 commits
updated Oct 12, 2026
Your Privacy, Your Control - AFWall+ gives you complete control over which apps can access the internet on your Android device.
AFWall+ is developed and maintained by volunteers. If you find it useful, please consider supporting the project:
Why donate? AFWall+ is free and open-source. Your support helps:
Donation options:

cumakt+amazon at gmail.com (not preferred)bc1q54nf3y9zmdcpasxx9sywkprd6309rfhav3mape0x5e65649C2B26eD816fCeD25a8E507C90D4b1D697After donating, please send your receipt to contact@portgenix.com to receive an unlocker. Please allow 1-2 days for a response.
AFWall+ (Android Firewall+) is a powerful, open-source firewall application for rooted Android devices. Built on Linux's robust iptables framework, AFWall+ provides granular network control at the system level - something impossible with standard Android permissions.
AFWall+ operates at the Linux kernel level using iptables rules to:
This approach is much more powerful than app-level solutions because it works regardless of how apps try to connect to the internet.
Release Notes: Check the changelog for what's new in each version.
# Verify root access
su -c "id"
# Should return: uid=0(root) gid=0(root)
AFWall+ supports custom iptables rules for advanced users:
# Example: Allow specific IP range
-A afwall-wifi -d 192.168.1.0/24 -j ACCEPT
# Example: Block specific port
-A afwall -p tcp --dport 443 -j REJECT
Create different rule sets for different scenarios:
AFWall+ is available in 40+ languages thanks to our community translators:
🇺🇸 English • 🇪🇸 Español • 🇫🇷 Français • 🇩🇪 Deutsch • 🇮🇹 Italiano • 🇷🇺 Русский • 🇨🇳 中文 • 🇯🇵 日本語 • 🇰🇷 한국어 • 🇵🇹 Português • 🇳🇱 Nederlands • 🇵🇱 Polski • 🇹🇷 Türkçe • 🇸🇦 العربية • 🇮🇳 हिंदी • And many more!
Want to help translate? Join our Crowdin translation project.
git clone https://github.com/ukanth/afwall.git
cd afwall
./gradlew clean assembleDebug
To compile iptables, busybox, and other native components:
# Requires Android NDK
export NDK=/opt/android-ndk-r25
make -C external NDK=$NDK
afwall/
├── app/src/main/java/dev/ukanth/ufirewall/
│ ├── Api.java # Core iptables interface
│ ├── MainActivity.java # Main UI
│ ├── InterfaceTracker.java # Network state monitoring
│ ├── util/BootRuleManager.java # Boot rule application
│ ├── service/ # Background services
│ ├── broadcast/ # System event receivers
│ └── log/ # Logging subsystem
├── app/src/main/res/raw/ # Native binaries (iptables, busybox)
├── external/ # Native binary sources
└── scripts/ # Build scripts
# Run lint checks
./gradlew lint
# Run unit tests
./gradlew test
# Install debug build
./gradlew installDebug
We welcome contributions! Here's how you can help:
# Standard GitHub workflow
1. Fork the repository
2. Create a feature branch: git checkout -b feature-name
3. Make your changes and test thoroughly
4. Submit a pull request with a clear description
Before reporting issues, check our FAQ for common solutions.
AFWall+ uses a layered architecture:
AFWall+ builds upon the work of many open-source projects and contributors:
| Component | License | Purpose |
|---|---|---|
| iptables | GPL v2 | Linux firewall framework |
| BusyBox | GPL v2 | Unix utilities |
| libsuperuser | Apache 2.0 | Root access management |
| libsu | Apache 2.0 | Modern root interface |
| Material Dialogs | MIT | UI components |
| DBFlow | MIT | Database ORM |
| PrettyTime | Apache 2.0 | Human-readable timestamps |
Thanks to all contributors who have helped improve AFWall+ over the years!
AFWall+ is released under the GNU General Public License v3.0.
Copyright (C) 2009-2011 Rodrigo Zechin Rosauro
Copyright (C) 2011-2024 Umakanthan Chandran
This program 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 option) any later version.
This program 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.
Full license text: See the LICENSE file or gnu.org/licenses/gpl-3.0
Made with ❤️ for Android privacy and security
AFWall+ - Your Network, Your Rules
164 followers · starred Oct 2022
2,549 followers · starred May 2021
1,732 followers · starred Oct 2016
342 followers · starred Feb 2015
AFWall+ (Android Firewall +) - iptables based firewall for Android
Java
3,501
1,827 commits
updated Oct 12, 2026
Your Privacy, Your Control - AFWall+ gives you complete control over which apps can access the internet on your Android device.
AFWall+ is developed and maintained by volunteers. If you find it useful, please consider supporting the project:
Why donate? AFWall+ is free and open-source. Your support helps:
Donation options:

cumakt+amazon at gmail.com (not preferred)bc1q54nf3y9zmdcpasxx9sywkprd6309rfhav3mape0x5e65649C2B26eD816fCeD25a8E507C90D4b1D697After donating, please send your receipt to contact@portgenix.com to receive an unlocker. Please allow 1-2 days for a response.
AFWall+ (Android Firewall+) is a powerful, open-source firewall application for rooted Android devices. Built on Linux's robust iptables framework, AFWall+ provides granular network control at the system level - something impossible with standard Android permissions.
AFWall+ operates at the Linux kernel level using iptables rules to:
This approach is much more powerful than app-level solutions because it works regardless of how apps try to connect to the internet.
Release Notes: Check the changelog for what's new in each version.
# Verify root access
su -c "id"
# Should return: uid=0(root) gid=0(root)
AFWall+ supports custom iptables rules for advanced users:
# Example: Allow specific IP range
-A afwall-wifi -d 192.168.1.0/24 -j ACCEPT
# Example: Block specific port
-A afwall -p tcp --dport 443 -j REJECT
Create different rule sets for different scenarios:
AFWall+ is available in 40+ languages thanks to our community translators:
🇺🇸 English • 🇪🇸 Español • 🇫🇷 Français • 🇩🇪 Deutsch • 🇮🇹 Italiano • 🇷🇺 Русский • 🇨🇳 中文 • 🇯🇵 日本語 • 🇰🇷 한국어 • 🇵🇹 Português • 🇳🇱 Nederlands • 🇵🇱 Polski • 🇹🇷 Türkçe • 🇸🇦 العربية • 🇮🇳 हिंदी • And many more!
Want to help translate? Join our Crowdin translation project.
git clone https://github.com/ukanth/afwall.git
cd afwall
./gradlew clean assembleDebug
To compile iptables, busybox, and other native components:
# Requires Android NDK
export NDK=/opt/android-ndk-r25
make -C external NDK=$NDK
afwall/
├── app/src/main/java/dev/ukanth/ufirewall/
│ ├── Api.java # Core iptables interface
│ ├── MainActivity.java # Main UI
│ ├── InterfaceTracker.java # Network state monitoring
│ ├── util/BootRuleManager.java # Boot rule application
│ ├── service/ # Background services
│ ├── broadcast/ # System event receivers
│ └── log/ # Logging subsystem
├── app/src/main/res/raw/ # Native binaries (iptables, busybox)
├── external/ # Native binary sources
└── scripts/ # Build scripts
# Run lint checks
./gradlew lint
# Run unit tests
./gradlew test
# Install debug build
./gradlew installDebug
We welcome contributions! Here's how you can help:
# Standard GitHub workflow
1. Fork the repository
2. Create a feature branch: git checkout -b feature-name
3. Make your changes and test thoroughly
4. Submit a pull request with a clear description
Before reporting issues, check our FAQ for common solutions.
AFWall+ uses a layered architecture:
AFWall+ builds upon the work of many open-source projects and contributors:
| Component | License | Purpose |
|---|---|---|
| iptables | GPL v2 | Linux firewall framework |
| BusyBox | GPL v2 | Unix utilities |
| libsuperuser | Apache 2.0 | Root access management |
| libsu | Apache 2.0 | Modern root interface |
| Material Dialogs | MIT | UI components |
| DBFlow | MIT | Database ORM |
| PrettyTime | Apache 2.0 | Human-readable timestamps |
Thanks to all contributors who have helped improve AFWall+ over the years!
AFWall+ is released under the GNU General Public License v3.0.
Copyright (C) 2009-2011 Rodrigo Zechin Rosauro
Copyright (C) 2011-2024 Umakanthan Chandran
This program 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 option) any later version.
This program 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.
Full license text: See the LICENSE file or gnu.org/licenses/gpl-3.0
Made with ❤️ for Android privacy and security
AFWall+ - Your Network, Your Rules
164 followers · starred Oct 2022
2,549 followers · starred May 2021
1,732 followers · starred Oct 2016
342 followers · starred Feb 2015