logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

apf - easy iptables based firewall system

Description

       This  manual  page  documents  briefly  the  apf  command.   This  manual page was written for the Debian
       distribution because the original program does not have a manual page.

       Advanced Policy Firewall (APF) is an iptables (netfilter)  based  firewall  system  designed  around  the
       essential  needs  of  today's  Internet  deployed  servers  and the unique needs of custom deployed Linux
       installations. The configuration of APF is designed to be very informative and present the user  with  an
       easy  to follow process, from top to bottom of the configuration file. The management of APF on a day-to-
       day basis is conducted from the command line with  the  'apf'  command,  which  includes  detailed  usage
       information and all the features one would expect from a current and forward thinking firewall solution.

Name

       apf - easy iptables based firewall system

Options

apf  follow  the  usual  GNU  command  line  syntax, with long options starting with two dashes (`-').  A
       summary of options is included below.

       -s|--start
              load all firewall rules

       -r|--restart
              stop (flush) & reload firewall rules

       -l|--list
              list all firewall rules

       -t|--status
              output firewall status log

       -e|--refresh
              refresh & resolve dns names in trust rules

       -a<HOSTCMT|--allow<HOSTCOMMENT>
              add host (IP/FQDN) to allow_hosts.rules and immediately load new rule into firewall

       -d<HOSTCMT|--deny<HOSTCOMMENT>
              add host (IP/FQDN) to deny_hosts.rules and immediately load new rule into firewall

       -u<HOST>|--remove<HOST>
              remove host from [glob]*_hosts.rules and immediately remove rule from firewall

       -o|--ovars
              output all configuration options

Synopsis

apf

See Also