There are two ways to edit CSF configuration, from the Linux shell by typing: nano -w /etc/csf/csf.conf So pay attention and follow my guide step by step. This is by far the most critical and important part, because if you misconfigure your server ports, your traffic may be affected. Let’s continue with CSF Firewall port configuration. Run the CSF Firewall Installation script for cPanel: sh tar.gz source from website, then we will extract.
#INSTALL CPANEL INSTALL#
In order to install csf firewall on cPanel we will download the. You need to disable and remove that package from your system boot process before you can continue the csf installation.ĭisable/Remove firewalld from the system startup systemctl disable firewalld Install CSF Firewall on cPanel step by step
Remove FirewallDĬentOS 7 comes with a new firewall installed by default, it is called firewallD.
#INSTALL CPANEL HOW TO#
Now you are ready to continue with to learn how to install CSF firewall on cPanel. That’s all, APF Firewall should be now completely uninstalled.
Remove APF from the system boot: chkconfig apf off Remove APF installation files: rm /etc/apf -rfv It is a little bit tricky than uninstalling APF using rpm command, but it can be done if you know what you are doing.įirst, before removing APF let’s stop iptables and APF service by running this commands: /etc/init.d/iptables stop The other way to install APF firewall is using source code. Then try to uninstall APF again: ~ ]# rpm -e apf-9.7 Removing APF from source BFD needs to be removed before you remove APF. It means you have BFD (APF sister product called Brute Force Detection) installed. In order to uninstall that package you must run this command: ~]# rpm -e apf-9.7Īpf >= 9.7 is needed by (installed) Then that means APF was installed using an. If you see something like this: ~]# rpm -qa | grep apf But first, we have to check if its installed using RPM, for this just run this command: rpm -qa |grep -i apf If APF Firewall was installed using yum package manager, you can uninstall it using the all mighty ‘rpm -e’ command. In order to install csf firewall on cpanel, first we will check if APF was installed using RPM files. If you are using another firewall rather than APF, then please make sure you follow the uninstall instructions so you can be completely sure that it is uninstalled before you continue with CSF installation. To prevent conflicts because both solutions (CSF and APF) uses iptables we’d better uninstall APF first to avoid any kind of problems with their iptables rules. There are big chances that if you are using another firewall, that would be APF. Apart from CSF Firewall, the 2nd most popular firewall in the web hosting industry is APF Firewall. Removing your current firewall is the first thing you must do to begin the step by step tutorial on how to install CSF Firewall on cPanel. This CSF installation tutorial is made for those who have a VPS, Cloud or Dedicated server with cPanel control panel. On this post, you will learn how to configure CSF and its security module LFD (Login Failure Daemon) in a basic way. If you follow our CSF installation guide, I can guarantee that even if you are a novice system administrator, you will be able to configure it properly without causing any issues to your websites. However, the fact that CSF is not only a firewall, but a security suite, doesn’t mean that it is hard to configure or to adapt to your needs. IntroductionĬSF is often seen as a very advanced firewall, for this lot of newbies find it hard to configure and often prefer other simple firewall solutions when they are choosing a Linux firewall for their cPanel servers. Today we will explore how to install CSF Firewall on cPanel. It was created by ConfigServer LTD and offers a complete security suite for cPanel servers. CSF Firewall is one of the most complete and robust iptables based firewalls in the Linux industry.