Best answer
I am having CSF installed on the server and I am wanting to try a new firewall software, I think if I keep CSF it can make a conflict between 2 software hence I would remove CSF to install the new firewall. My question is, How to uninstall CSF completely for my server?
Hello
David Beroff,
CSf is the most commonly used
firewall application to
secure Linux servers. However, removing CSF is even more straightforward. Along with installation,
CSF provides an uninstallation
script in the
configuration folder.
You can uninstall the CSF firewall by running the script from the terminal. You can follow the below-given way to uninstall the CSF firewall from the server completely,
There is a script in the csf directory. You can uninstall the CSF firewall utility by running the ‘
uninstall.sh‘ script from the command line.
- Login to your server via SSH root user
- Change the directory to ‘/etc/csf’
- Locate this file under the directory /etc/csf.
Code:
uninstall.sh -> /usr/local/csf/bin/uninstall.sh
- Now, Execute the following command,
Code:
# /usr/local/csf/bin/uninstall.sh
You can also uninstall the CSF firewall completely from the below command,
Code:
cd /etc/csf
sh uninstall.sh
The below command can be used for a user having no control panel for their Linux servers and wanted to uninstall the CSF firewall completely,
Code:
cd /etc/csf
sh uninstall.sh
I hope the information above helps you to uninstall the CSF firewall from the Linux server completely.
-------------------------
Regards,
harry_v