How to install CSF firewall on centos linux

Description: Advanced Policy Firewall (APF) is an iptables(netfilter) based firewall system designed around the essential needs of todays Internet deployed servers and the unique needs of custom deployed Linux installations. The configuration of APF is designed to be very informative and present the user with an easy to follow process, from top to bottom of the configuration file. The management of APF on a day-to-day basis is conducted from the command line with the apf command, which includes detailed usage information and all the features one would expect from a current and forward thinking firewall solution.

Pre Setup: Make sure perl modules are installed

yum install -y perl-libwww-perl

Step 1: Download, unpack, install of APF from source.

cd /usr/local/src
tar -zxvf csf.tgz
cd csf

Step 1.1: Cleanup source install files.

rm -Rf /usr/local/src/csf* && cd

Step 2: Backup orginal CSF config

cp /etc/csf/csf.conf /etc/csf/csf.conf.bak

Step 3: Edit current CSF config

nano -w /etc/csf/csf.conf

Was this answer helpful?

 Print this Article

Also Read

Menggunakan tar, gzip dan bzip2

Berikut ini adalah cara menggunakan program tar, gzip, dan bzip2 untuk membuat arsip terkompresi....

Merubah timezone, date, and time

In /etc the file, localtime, is a link to or copy of a file containing information about your...

Red Hat / CentOS Linux Install Suhosin PHP 5

Berikut ini akan saya jelaskan step-by-step menginstall suhosin di mesin server Linux Red...

Web Server HTTPS : Secure HTTP Protocol pada CentOS

Pada beberapa halaman web kita sering menemukan alamat yang menggunakan “https://”...

Membangun Web Server Centos (LAMP)

LAMP adalah singkatan Linux,  Apache, MySQL, PHP. Tutorial ini menunjukkan bagaimana Anda...