What Advanced Policy Firewall is
Advanced Policy Firewall (APF) is a free firewall system for Internet-deployed Linux servers. It uses iptables/netfilter to apply static rules, stateful connection policies, and checks for attack patterns and forged source addresses. Administrators can control inbound and outbound traffic, including rules based on users and applications. Other controls include reactive address blocking, GeoIP country filtering, and Spamhaus and DShield block lists. APF supports IPv6 dual-stack filtering and automatic ip6tables rules. Its documentation describes fast-load snapshots that can load more than 1,000 rules in under one second, and integrations with BFD, cron, systemd, Docker/Kubernetes, and logrotate. It requires Linux, iptables/netfilter, and Bash, and supports legacy and nft iptables backends. Documented systems include RHEL/Rocky/AlmaLinux 8 and 9, CentOS 6 and 7, Debian 12, and Ubuntu 12.04, 20.04, and 24.04. It is distributed under GNU GPL; the maker says there are no paid tiers or enterprise editions. By default, only SSH port 22 is open, while outbound filtering, reactive address blocking, and virtual network policies are disabled. Development mode flushes the firewall every five minutes to help reduce initial lockout risk.
Who it suits
It suits administrators managing Linux servers who need configurable inbound and outbound firewall rules. It requires familiarity with Linux, iptables/netfilter, and Bash.
Good to know, and what to watch
- Free under GNU GPL with no paid tiers.
- Supports inbound and outbound filtering, including application rules.
- Provides IPv6 dual-stack filtering.
- Includes GeoIP, Spamhaus, and DShield blocking options.
- Integrates with BFD, cron, and systemd.
- Only SSH port 22 is open by default.
- Outbound filtering is disabled by default.
- Reactive blocking and virtual network policies are disabled by default.
- Requires Linux, iptables/netfilter, and Bash.
Plans
Every plan and priceAdvanced Policy Firewall
Free plan
The verdict
APF offers a broad set of server firewall controls, but several protections are off by default. Administrators should review its default configuration and supported systems before deployment.
What the maker publishes
- Application rules
- Yes source
- Blocking
- Features include reactive address blocking, GeoIP country filtering, and Spamhaus and DShield block lists. source
- Configuration limit
- Only SSH port 22 is open by default, while outbound filtering, reactive address blocking, and virtual network policies are disabled by default. source
- Filtering
- Its filtering combines static rules, connection-based stateful policies, and sanity checks for attack patterns and source IP forgery. source
- Founded
- 2002 source
- Founded
- 2002 source
- Free plan
- Yes source
- Integrations
- The documentation describes integration with BFD, cron, systemd, Docker/Kubernetes, and logrotate. source
- IPv6
- APF supports IPv6 dual-stack filtering with automatic ip6tables rules. source
- License and price
- APF is distributed under GNU GPL without restrictions on use or redistribution, and R-fx Networks says its projects have no paid tiers or enterprise editions. source
- Outbound control
- advanced source
- Performance
- The documentation says fast-load snapshots can load more than 1,000 rules in under one second. source
- Supported platforms
- Linux source
- Purpose
- APF is an iptables/netfilter-based firewall system designed for Internet-deployed Linux servers. source
- Requirements
- APF requires a Linux system with iptables/netfilter and Bash; the documentation supports both legacy and nft iptables backends. source
- Rule direction
- both source
- Safety behavior
- Development mode is enabled by default and flushes the firewall every five minutes to help prevent lockout during initial configuration. source
- Security reporting
- R-fx Networks asks for vulnerability reports to be sent privately and says it will acknowledge receipt within 48 hours. source
- Support
- The maker directs users to the APF source repository and invites bug reports and feature requests through its issue tracker. source
- Supported systems
- The documentation lists RHEL/Rocky/AlmaLinux 8 and 9, CentOS 7 and 6, Debian 12, and Ubuntu 20.04, 24.04, and 12.04. source
- Traffic controls
- It supports granular inbound and outbound filtering, including user- and application-based outbound rules. source
Checked against the maker's pages on 8 Oct 2026.