CSF: Linux system free firewall « Zhaorong Tribe

CSF: Linux system free firewall

Time: October 3, 2012 Column: VPS Tutorial Author: Zhao Rong Click: 21095 times

 Proprietary computer room/advanced anti DDoS server/advanced anti DDoS VPS/American advanced anti DDoS/Los Angeles VPS/Los Angeles advanced anti DDoS server

CSF It is a free firewall for the Linux system developed by a small foreign company. It works based on iptables and can effectively relieve the pressure on the server. It has the functions of automatically shielding violent password cracking IP, managing open ports, immunizing lightweight DDos and CC, etc. At the same time, it is also very simple to install and use. There are graphical operation interfaces on our commonly used DA and CP panels, It also supports individual ordinary users to install in the LNMP environment.

install CSF

Perform the following steps to install:

 rm -fv csf.tgz wget  http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh
 Detect iptalbes module:
 perl /etc/csf/csftest.pl
 If APF was previously installed, uninstall it:
 sh /etc/csf/remove_apf_bfd.sh
 After execution, your CSF is installed. The above installation steps are applicable to the LNMP environment and under the DA and CP panels.
 [Note] The LNMP environment may require dependent packages: yum install perl libwww perl perl iptables
 From the official address: The following installation steps are from the official address: http://www.configserver.com/free/csf/install.txt

Configure CSF

 To configure CSF, let's first install the CSF Configuration situation.
 CSF configuration file address:/etc/csf/csf.conf
 White list:/etc/csf/csf.allow
 Blacklist:/etc/csf/csf.deny
 The main configuration information includes the opening of common ports in csf.conf. After all settings are completed, the test mode will be closed( TESTING = "0" ).
 Under the WHM/CP panel, log in to WHM, plug-ins, CSF Security&Firewall configuration information.
 csf
 Similar to the DA panel, directly log in to the DA administrator side, select CSF Security&Firewall to enter the graphical interface settings.

Uninstall CSF

 To uninstall CSF, perform the following steps.
 Uninstall in LNMP environment

cd /etc/csf

sh uninstall.sh

WHM/CP unloading

cd /etc/csf

sh uninstall.sh

DA unloading

cd /etc/csf

sh uninstall.sh

Pay special attention to the above tests and commands under CentOS. Please refer to the official information for detailed settings.

 Advanced Defense VPS/Los Angeles Advanced Defense/Advanced Defense Server/20 year old computer room

Statement: Blogs are only for sharing information and are not recommendations. Websites do not participate in transactions and are not intermediaries. The content only represents personal views and is not authoritative. Readers should consider it and take their own risks! Every penny and every commodity is still the eternal truth. Juvenile readers (including physical and psychological) should visit this website with their guardians! This article is written by( Zhao Rong )Original compilation, reprint, please keep the link: CSF: Linux system free firewall The code is not easy, please do not copy or paste!
About using: This website mainly shares server and VPS information, and does not provide any product sales or purchase. All visitors please purchase and use products within the scope of national laws and regulations. QQ group discussion: 683851361
About safety: Any IDC has the possibility of going bankrupt and running away. The host line is even more uncontrollable. Monthly payment and backup are your best choices. Please keep good and regular backup habits

CSF: Linux system free firewall: currently there are 14 messages

  1. 8th floor
    oy0 :

    Always wanted to ask what excellent firewall software is available under Linux
    It is troublesome to add modules and extensions to IPTables.

    2016-03-23 01:31 [Reply]
  2. 7th floor
    lamp :

    Does this work?

    2014-04-14 20:37 [Reply]
  3. 6th floor
    ppopcn :

    Using this panel for vps+cp will result in the failure of ftp by default. I don't know whether to fix this problem

    2012-10-22 10:13 [Reply]
    • Zhao Rong :

      This problem has not been encountered in CP, but in DA.

      2012-10-22 13:09 [Reply]
  4. 5F
    The world is the same :

    We always use debian.............

    2012-10-16 15:09 [Reply]
  5. 4th floor
    zodiacg :

    The configuration file is very complicated... After DA installation, there is a server security check that is quite practical. I wonder if there is a similar check script for lnmp installation

    2012-10-11 16:41 [Reply]
    • Zhao Rong :

      I didn't notice that

      2012-10-11 16:47 [Reply]
  6. floor
    Blue Cat :

    The expression of the bird language version is under great pressure

    2012-10-05 13:37 [Reply]
    • Zhao Rong :

      There's too much pressure. Look at Google. That's what I do~

      2012-10-05 13:43 [Reply]
  7. Bench
    Ohmori :

    Does Brother Zhao have Chinese? Bird songs are not good! 😮

    2012-10-04 22:35 [Reply]
    • Zhao Rong :

      Well, there is no such thing. Moreover, it is not a graphical interface directly under the Linux system.

      2012-10-04 22:37 [Reply]
  8. sofa
    jsjfans :

    Can I use it under debian?

    2012-10-03 12:03 [Reply]
    • Zhao Rong :

      (⊙ o ⊙)... I haven't tried Debian's, but I usually install Centos. Please take a look at its official

      2012-10-03 13:48 [Reply]
      • seamus :

        😮 We always use debian.............

        2012-10-04 08:48 [Reply]

Comment


 hostyun  locvps

Advertise