How to install CSF on Ubuntu ?

Discussion in 'Questions and Answers' started by Benny_D, Jun 20, 2018.

  1. Benny_D

    Benny_D Member

    Aug 10, 2016
    Provide me the commands to install CSF on ubuntu ?
  2. Scopehosts

    Scopehosts Member Verified Provider

    Jan 14, 2015
    Installing ConfigServer Firewall
    Step 1: Downloading

    Config Server Firewall is not currently available in Debian or Ubuntu repositories, and has to be downloaded from the ConfigServer's website.

    This will download CSF to your current working directory.

    Step 2: Uncompressing
    The downloaded file is a compressed from of tar package, and has to be uncompressed and extracted before it can be used.

    tar -xzf csf.tgz
    Step 3: Installing
    If you are using another firewall configuration scripts, such as UFW, you should disable it before proceeding. Iptables rules are automatically removed.

    UFW can be disabled by running the following command:

    ufw disable
    Now it is time to execute the CSF's installer script.

    cd csf
    The firewall is now installed, but you should check if the required iptables modules are available.

    perl /usr/local/csf/bin/
    The firewall will work if no fatal errors are reported.
    Hostfinch likes this.
  3. tarunap

    tarunap New Member

    Aug 30, 2014
    Last edited: Sep 5, 2018