ConfigServer Security & Firewall (CSF) is a suite of scripts provides:

  • A straight-forward SPI iptables firewall script;
  • A daemon process that checks for Login Authentication;
  • A Control Panel configuration interface;
  • … and much more!

The tutorial was prepared with our “CentOS 6 + Webmin” template and is meant to work on our self-managed virtual private servers.

۰. Preliminary requirements:
“CentOS 6 + Webmin” template installed on server;
“perl-libwww-perl” installed on the server (yum install perl-libwww-perl -y);
Fully updates server software (yum update).

۱. CSF installation

Installation of CSF is quite straightforward:

cd /usr/src


tar -xzf csf.tgz

cd csf


۲. CSF module installation in Webmin

CSF module installation is done through Webmin interface so first you should log in to you Webmin instance. By default the address is:


After successfully login you should select “Webmin” and “Webmin Configuration”:

In “Webmin Configuration” select “Webmin Modules”:

In “Webmin modules” select “From local files” and specify the path to module archive and isntall module.


NOTE: if you are using “Authentic Theme 18.10” you should remove “csf.min.js” file because of a bug:

rm /usr/libexec/webmin/authentic-theme/extensions/csf.min.js -f

۳. CSF configuration

After successfully installation you can now configure your ConfigServer Security & Firewall. Select “System” and “ConfigServer Security & Firewall” in your Webmin instance:

You should now see that there is two notices that we need to take care of. So select “ConfigServer Firewall” and then select “Firewall Configuration”:

First we will turn of testing mode:

And then we should restrict syslog/rsyslog access:

After these changes press the button “Change” at the bottom of the page and “Restart csf+lfd” afterwards.


ممكن است این موارد را هم بپسندید!

ارسال دیدگاه

لطفا نام خود را وارد كنید! لطفا آدرس ایمیل را صحیح وارد كنید! لطفا پیام را وارد كنید!