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:
tar -xvzf apf-current.tar.gz
cd apf-X.X-X or whatever the latest version is.
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.
CHANGE TO: DEVM="0"
If this is for a VPS or dedicated server with multiple interfaces:
# Common inbound (ingress) TCP ports
# Common inbound (ingress) UDP ports
# Common ICMP inbound (ingress) types