amuck-landowner

CSF firewall installation guide

Amelia

New Member
Code:
[SIZE=16px] how to install csf firewall ? [/SIZE]


-> So, login to your server via ssh and let’s start CSF installation by retrieving the package files using wget command:

# wget [URL="http://configserver.com/free/csf.tgz"]http://configserver.com/free/csf.tgz[/URL]

Unpack the archive:

# tar xfz csf.tgz

Navigate to the uncomperssed csf directory:

# cd csf

Run the installer:

# sh install.sh

It will create configuration file and add all required cPanel services to allow list. Let’s disable testing mode by editing main CSF configuration file. Open the file using any editor (vi, nano, etc):

# nano /etc/csf/csf.conf

and change

TESTING = “1?

to

TESTING = “0?

When done, restart CSF:

# csf -r

Now CSF is installed and ready. You can simply manage it via cPanel WHM interface WHM > Config Security & Firewall:
 
Last edited by a moderator:

wlanboy

Content Contributer
You should test if all iptables modules are installed:

Code:
perl /usr/local/csf/bin/csftest.pl
 

HBAndrei

Active Member
Verified Provider
how to install csf firewall ?


-> So, login to your server via ssh and let’s start CSF installation by retrieving the package files using wget command:

# wget http://configserver.com/free/csf.tgz

Unpack the archive:

# tar xfz csf.tgz

Navigate to the uncomperssed csf directory:

# cd csf

Run the installer:

# sh install.sh

It will create configuration file and add all required cPanel services to allow list. Let’s disable testing mode by editing main CSF configuration file. Open the file using any editor (vi, nano, etc):

# nano /etc/csf/csf.conf

and change

TESTING = “1?

to

TESTING = “0?

When done, restart CSF:

# csf -r

Now CSF is installed and ready. You can simply manage it via cPanel WHM interface WHM > Config Security & Firewall:

If you're going to copy/paste a tutorial, at least make sure the characters are displayed correctly.

http://i.imgur.com/EmUJ6C8.png
 
Top
amuck-landowner