How to install and configure CSF on Plesk server with a GUI Print

  • 0

ConfigServer Firewall is a great tool to have on a server but unfortunately it does not come with native GUI support on Plesk servers (unless you purchase an extension). This tutorial shows you how to install CSF on a Linux Plesk server (In this case CentOS 7) and then configure the user interface for access

1) Install CSF Configserver Firewall

cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

2) Open the CSF configuration file so we can change the GUI port to access CSF with
sudo vi /etc/csf/csf.conf

Find and edit these lines:

1 to enable, 0 to disable web ui

UI = “1”

UI_PORT = “1020”

UI_IP = “”

UI_USER = “admin”

UI_PASS = “admin”

3) Now you need to add your IP address to the allow list so you can access the GUI. If your IP is always changing, this may be a problem but I do NOT recommend allowing all IPs to access the GUI. So, this is how you add your IP to the allow list:
sudo echo “YOUR_PUBLIC_IP_ADDRESS” >> /etc/csf/ui/ui.allow

4) Plesk can sometimes have issues with other firewall services blocking access. To ‘get em all’, do this:

systemctl stop firewalld
systemctl disable firewalld
systemctl iptables stop
iptables -F
service iptables-save
systemctl iptables start

This should be most of them. That’s it. You should now be able to access CSF to block/allow IPs and other things by going to:

https://your.hostname.com:1025 (Replace 1020 with whatever port you decided to use)


Was this answer helpful?

« Back