The following will install APF firewall with cPanel :
Login as root
download the latest APF version and extract
then go the directory and for instance cd apf-0.9.3_3
Run the installation code ./install.sh
It will provide the notification
After the installation, define the firewall such in /etc/apf/conf.apf
You can make the ports for connection
such as follows :
# Common ingress (inbound) TCP ports
IG_TCP_CPORTS=" 20,21,22,25,26,53,80,110,143,443,465,993,995,2082,
2083,2086,2087,2095,2096,3306,6666"
# Common ingress (inbound) UDP ports
IG_UDP_CPORTS="21,53,465,873"
# Common ICMP (inbound) types
IG_ICMP_TYPES="3,5,11,0,30,8"
Instruct them to monitor the outgoing connection
Changes can be made in the allow and deny file for allowing the IPs or disallowing them.
Once the changes are made, you may start APF : /usr/local/sbin/apf -s
11) Start APF
|