Learn about Centmin Mod LEMP Stack today
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

    52,183
    11,998
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,501
    Local Time:
    12:45 AM
    Nginx 1.25.x
    MariaDB 10.x
    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,063
    427
    83
    May 31, 2014
    Ratings:
    +830
    Local Time:
    5:45 PM
    Nginx-1.25.x
    MariaDB 10.3.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

    52,183
    11,998
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,501
    Local Time:
    12:45 AM
    Nginx 1.25.x
    MariaDB 10.x
    should be fixed in 123.09beta01 update I just made :)