How to uninstall the CSF firewall completely from the Linux server??

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Ryaan J.
    Senior Member
    • Apr 2022
    • 100

    How to uninstall the CSF firewall completely from the Linux server??


    Hello,


    I have CSF installed on the Linux server and want to test a new firewall software. I think if I keep CSF, it will conflict with each other; hence I want to remove CSF to install the new firewall.

    Can anyone assist me with how to uninstall the CSF firewall from the server?
  • Rex Maughan
    Senior Member
    • Mar 2022
    • 105

    #2
    AccuWeb.Cloud
    Originally posted by Ryaan J. View Post
    Hello,


    I have CSF installed on the Linux server and want to test a new firewall software. I think if I keep CSF, it will conflict with each other; hence I want to remove CSF to install the new firewall.

    Can anyone assist me with how to uninstall the CSF firewall from the server?

    Hello Ryaan J.,


    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. In addition, 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’
    # cd /etc/csf
    • Locate this file under the directory /etc/csf.
    uninstall.sh -> /usr/local/csf/bin/uninstall.sh
    • Now, Execute the following command,
    Code:
    # sh uninstall.sh
    • Or,
    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 wants 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,
    Rex M

    Comment

    Working...
    X