Join the community today
Register Now

Beta Branch update CSF default DENY_IP_LIMIT & DENY_TEMP_IP_LIMIT in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 15, 2025.

  1. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:04 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update CSF default DENY_IP_LIMIT & DENY_TEMP_IP_LIMIT in 140.00beta01

    - raise the CSF default DENY_IP_LIMIT & DENY_TEMP_IP_LIMIT limits in CSF Firewall config file /etc/csf/csf.conf for initial Centmin Mod 140.00beta01 installations as EL8/EL9 OS memory requirements have increased. Existing Centmin Mod users will not automatically get this change. They can decide to manually update these limits if they want and then restart CSF Firewall service via command: csf -ra
    - this update for fresh Centmin Mod 140.00beta01 installs only, dynamically adjusts CSF firewall's DENY_IP_LIMIT and DENY_TEMP_IP_LIMIT based on server memory to enhance security, with breakpoints and updated values as follows:

    Memory Breakpoint: <= 1022500 KB
    DENY_IP_LIMIT: Updated to 15000
    DENY_TEMP_IP_LIMIT: Updated to 15000


    Memory Breakpoint: > 1022501 KB and <= 2045000 KB
    DENY_IP_LIMIT: Updated to 30000
    DENY_TEMP_IP_LIMIT: Updated to 30000

    Memory Breakpoint: > 2045001 KB and <= 4062500 KB
    DENY_IP_LIMIT: Updated to 50000
    DENY_TEMP_IP_LIMIT: Updated to 50000

    Memory Breakpoint: > 4062501 KB and <= 8125000 KB
    DENY_IP_LIMIT: Updated to 150000
    DENY_TEMP_IP_LIMIT: Updated to 150000

    Memory Breakpoint: > 8125001 KB and <= 16250000 KB
    DENY_IP_LIMIT: Updated to 300000
    DENY_TEMP_IP_LIMIT: Updated to 300000

    Memory Breakpoint: > 16250001 KB and <= 32500000 KB
    DENY_IP_LIMIT: Updated to 500000
    DENY_TEMP_IP_LIMIT: Updated to 500000

    Memory Breakpoint: > 32500001 KB and <= 65000000 KB
    DENY_IP_LIMIT: Updated to 750000
    DENY_TEMP_IP_LIMIT: Updated to 750000

    Memory Breakpoint: >= 65000001 KB
    DENY_IP_LIMIT: Updated to 1000000
    DENY_TEMP_IP_LIMIT: Updated to 1000000

    Continue reading...

    140.00beta01 branch