If you want to Install/update CSF firewall then follow the below steps :
- Download the package here
root@server[#] cd /usr/local/src
root@server[#]wget http://www.configserver.com/free/csf.tgz
root@server[#] tar -zxf csf.tar.gz
root@server[#] cd /csf
root@server[#]sh install.sh
root@server[#] vi /etc/csf/csf.conf
Find TCP
# Allow incoming TCP ports
TCP_IN = “20,21,25,53,80,110,143,443,465,953,993,995,2082,2083,2086,2087,2095, 2096,8090,49226,26,512:65535,5666,3306,3333?
# Allow outgoing TCP ports
TCP_OUT = “20,21,25,37,43,53,80,110,113,443,587,873,953,2087,2089,2703,8090,512:65535?
Then just add your ip in the below files.
root@server[#] Vi /etc/csf/csf.allow
root@server[#] vi /etc/csf/csf.ignore
That’s all you are done.
