Archive for the Installations Category

How to Uninstall CSF Firewall

If you want to uninstall CSF firewall then follow the below steps :


[email protected][#] cd /etc/csf
[email protected][#] sh uninstall.sh

That’s all you are done.

CSF Firewall Installation

If you want to  Install/update CSF firewall  then follow the below steps :

  1. Download the package here

[email protected][#] cd /usr/local/src

[email protected][#]wget http://www.configserver.com/free/csf.tgz

[email protected][#] tar -zxf csf.tar.gz

[email protected][#] cd /csf

[email protected][#]sh install.sh

[email protected][#] 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.

[email protected][#] Vi /etc/csf/csf.allow

[email protected][#] vi /etc/csf/csf.ignore

That’s all  you are done.