Join the community today
Become a Member

Master Branch update inc/csftweaks.inc more accurate ipset support detection

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 19, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    32,389
    7,186
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,935
    Local Time:
    2:09 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. RoldanLT

    RoldanLT Well-Known Member

    4,072
    983
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,371
    Local Time:
    12:09 AM
    1.11
    10.2
    How to apply on my Linode server? :/
     
  3. eva2000

    eva2000 Administrator Staff Member

    32,389
    7,186
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,935
    Local Time:
    2:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    For Linode ensure ipset and ipset-devel installed
    Code:
    yum list ipset ipset-devel -q
    and if so just enable it in /etc/csf/csf.conf via
    Code:
    LF_IPSET = "1"
    or sed command line edit and raise ip limits
    Code:
    sed -i 's/LF_IPSET = \"0\"/LF_IPSET = \"1\"/' /etc/csf/csf.conf
    sed -i 's/DENY_IP_LIMIT = \"100\"/DENY_IP_LIMIT = \"3000\"/' /etc/csf/csf.conf
    sed -i 's/DENY_TEMP_IP_LIMIT = \"100\"/DENY_TEMP_IP_LIMIT = \"3000\"/' /etc/csf/csf.conf
    
    then restart CSF Firewall
    Code:
    csf -r
    Linode is special case as unlike other providers who load the ipset module support into kernels, Linode compiles custom kernels with ipset support natively embedded into their kernels so normal checks for ipset support in kernel don't report Linode kernels support ipset but they do :)
     
    Last edited: Jun 19, 2015
    • Like Like x 1
  4. RoldanLT

    RoldanLT Well-Known Member

    4,072
    983
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,371
    Local Time:
    12:09 AM
    1.11
    10.2
    Should be:
    LF_IPSET = "1"

    Thanks a lot Eva :)
     
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    32,389
    7,186
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,935
    Local Time:
    2:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    indeed !