Welcome to Centmin Mod Community
Become a Member

Beta Branch update CSF Firewall maxmind geolite2 routine in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 20, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    55,164
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update CSF Firewall maxmind geolite2 routine in 123.09beta01

    - Remove the CC_INTERVAL="365" routine allowing it to default back to 14 as a maxmind shared API key is in use
    - Update will set CSF Firewall's CC_SRC back to using maxmind database instead of previous post mentioned db-ip source via CC_SRC="1" in /etc/csf/csf.conf. Folks have been reporting IP geolocation data for Country codes for db-ip sourced database have not been as accurate as with maxmind database. See https://community.centminmod.com/posts/81062/


    For existing Centmin Mod 123.09beta01 users, you can switch from CC_SRC="2" back to CC_SRC="1" via these commands which backup your /etc/csf/csf.conf, sed replacement and then CSF Firewall restart and then grep filter check that the config file has indeed changed CC_SRC="1"

    Code (Text):
    csf --profile backup before_cc_src_1_switch
    sed -i 's|CC_SRC = "2"|CC_SRC = "1"|' /etc/csf/csf.conf
    csf -ra
    grep 'CC_SRC' /etc/csf/csf.conf


    Continue reading...

    123.09beta01 branch
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    12:12 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    That message repeated every time that i run Centminmod :(
    Code:
    Creating backup...
    ‘/etc/csf/csf.conf’ -> ‘/var/lib/csf/backup/1579507747_before_cc_src_1_switch’
    Creating backup...
    ‘/etc/csf/csf.conf’ -> ‘/var/lib/csf/backup/1579507747_after_cc_src_1_switch’
    If i am not wrong it should output that info only the first time....
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,164
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    should be fixed in 123.09beta01 update I just made :)