Search the knowledgebase:

New Search

APF (Advanced Policy Firewall)

Advanced Policy Firewall, or APF, is a firewall interface to help manage linux iptables firewall. We highly recommend EVERY linux server to run this firewall. Unlike CSF Firewall, APF is strictly a command line interface. More information can be found at the link below.

Install APF Firewall:
wget http://www.rfxn.com/downloads/apf-current.tar.gz
tar -xvzf apf-current.tar.gz
cd apf-X.X-X or whatever the latest version is.
./install.sh
Once you have completed the install, open apf.conf and make these changes:
**IMPORTANT** SHUT OFF
Sets Cronjob to flush the firewall every 5 minutes.
FIND: DEVM="1"
CHANGE TO: DEVM="0"
If this is for a VPS or dedicated server with multiple interfaces:
SET_VNET="1"
SET_ADDIFACE="1"
Configure Ports:
# Common inbound (ingress) TCP ports
# Common inbound (ingress) UDP ports
# Common ICMP inbound (ingress) types

Views: 3984