Installing Csf + Webmin on CentOS 09-25-2017, 01:06 AM
#1
![[Image: csf.jpg]](http://4.bp.blogspot.com/-eh5LaBIBfY8/UldMxU-o32I/AAAAAAAAAxg/3EiAQ2v2cxc/s320/csf.jpg)
Hello, in the following tutorial we will see the installation of ConfigServer Security & Firewall (CSF) + Webmin to have a web administration of our csf server and our csf firewall, well I have currently used this firewall several times and it has worked super well, I have achieved configure it in such a way that blocks ips per port scan and well it all depends on how we configure it and the level of security we need, now we go with the installation:
Well proceed to download the package:
Code:
#wget https://download.configserver.com/csf.tgzExtract the file:
Code:
# tar xfz csf.tgzGo to the extracted directory:
Code:
cd csfand install:
Code:
sh install.shAfter this if everything is correct, we will have installed our csf in the system, is to begin to configure all aspects in the following file: vim /etc/csf/csf.conf.
The first thing we should change is the testing mode:
Code:
TESTING = "1"
leave like this
TESTING = "0"and good to configure everything else as we want, after this we can restart our firewall with csf -r, to block ips manually we can do it with:
Code:
csf -d ip (example csf -d 192.564.232.234To add an ip to allowed we will do it with
Code:
csf -a ip (csf -a 192.564.232.234)![[Image: Webmin-Logo-600.png]](http://4.bp.blogspot.com/-LIMCUSCYgdo/UldUNKuLQKI/AAAAAAAAAxw/vNWh_dAXfBc/s400/Webmin-Logo-600.png)
Download the package:
Code:
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.660-1.noarch.rpmWe install:
Code:
rpm -U webmin-1.660-1.noarch.rpmWell the first thing we must do is open our port 10000, to access via web, example: 127.0.0.1:10000 , where the localhost would be our ip publishes,
Well we entered webmin and we log in with our root data, the first thing we will see is the webmin interface:
![[Image: ej1.png]](http://4.bp.blogspot.com/-LvZPpBI4xDY/UldZDa2WKeI/AAAAAAAAAyA/JUQQNsYGsXU/s400/ej1.png)
Go to Webmin> Webmin Configuration and then
Webmin Modules
In From local file we will put the following:
/etc/csf/csfwebmin.tgz
Webmin Modules
In From local file we will put the following:
/etc/csf/csfwebmin.tgz
![[Image: ej2.png]](http://1.bp.blogspot.com/-BZBcGkgF_k0/Ulda7x09qzI/AAAAAAAAAyM/VpA5O5LcshU/s400/ej2.png)
We will have access to csf in:
[-]
System
Bootup and Shutdown
Change Passwords
ConfigServer Security & Firewall
[-]
System
Bootup and Shutdown
Change Passwords
ConfigServer Security & Firewall
In the ConfigServer Security & Firewall area
![[Image: eje3.png]](http://2.bp.blogspot.com/-q28oKIdQ3Ns/Uldb7Whp4BI/AAAAAAAAAyU/HZlhtWQcaNg/s400/eje3.png)
Well from there we can manage the lock and unlock of ips,
manage the settings, the level of security of the firewall, among other things,
that would be all, greetings!
manage the settings, the level of security of the firewall, among other things,
that would be all, greetings!
![[Image: Vs4P58c.png]](https://i.imgur.com/Vs4P58c.png)





![[+]](https://sinister.li/images/modern/collapse_collapsed.png)










