Learn about Centmin Mod LEMP Stack today
Become a Member

Master Branch part 2 update Centmin Mod's Maxmind GeoLite2 database routines in 123…

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

  1. eva2000

    eva2000 Administrator Staff Member

    43,074
    9,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,100
    Local Time:
    5:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    part 2 update Centmin Mod's Maxmind GeoLite2 database routines in 123.09beta01

    Further work on updating Centmin Mod CSF Firewall's Maxmind GeoLite2 database routines due to changes on Maxmind's end requiring registration to download databases https://community.centminmod.com/threads/update-centmin-mods-maxmind-geolite2-database-routines-in-123-09beta01.18953/.

    This update allows centmin.sh menu runs to check if MM_LICENSE_KEY isn't set in /etc/centminmod/custom_config.inc & /etc/csf/csf.conf and if the variables aren't set and /var/lib/csf/Geo database files are missing, download last publicly available geolite2 databases for CSF Firewall as at Dec 23, 2019 & extend CC_INTERVAL to 365 days before next geolite2 database update to give me time to develop alternative arrangements. Once MM_LICENSE_KEY is set in /etc/centminmod/custom_config.inc and/or /etc/csf/csf.conf, then on next centmin.sh menu run, the CC_INTERVAL will be reset back from 365 days to default 14 days for geolite2 database update checks.

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.
     
  2. rdan

    rdan Well-Known Member

    4,856
    1,160
    113
    May 25, 2014
    Ratings:
    +1,740
    Local Time:
    3:42 AM
    Mainline
    10.2
    This should be reset now right?
    On new install still having 365 value.
     
  3. eva2000

    eva2000 Administrator Staff Member

    43,074
    9,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,100
    Local Time:
    5:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    default installs shouldn't have CC_INTERVAL="365" set unless MM_LICENSE_KEY variable hasn't been populated in /etc/csf/csf.conf which it should with the maxmind's shared API key

    If after your fresh install you run centmin.sh menu once and exit, does CC_INTERVAL change back to 14 in /etc/csf/csf.conf ?
     
  4. rdan

    rdan Well-Known Member

    4,856
    1,160
    113
    May 25, 2014
    Ratings:
    +1,740
    Local Time:
    3:42 AM
    Mainline
    10.2
    No, still 365, I manually set it back to 14 now.
     
  5. eva2000

    eva2000 Administrator Staff Member

    43,074
    9,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,100
    Local Time:
    5:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    strange then. Will have to investigate and see if I can reproduce the issue
     
  6. eva2000

    eva2000 Administrator Staff Member

    43,074
    9,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,100
    Local Time:
    5:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    can you post the output for
    Code (Text):
    csf --profile list

    each change I make to CSF Firewall config file /etc/csf/csf.conf, i now make centmin mod back a before and after backup so that will list all the backups made with a descriptive backup name.
     
  7. rdan

    rdan Well-Known Member

    4,856
    1,160
    113
    May 25, 2014
    Ratings:
    +1,740
    Local Time:
    3:42 AM
    Mainline
    10.2
     
  8. eva2000

    eva2000 Administrator Staff Member

    43,074
    9,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,100
    Local Time:
    5:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 2
  9. EckyBrazzz

    EckyBrazzz Active Member

    854
    173
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +317
    Local Time:
    4:42 PM
    Latest
    Latest
    Thx for this fix, because my matomo install did not work as it should work, I had a delay of 1 hour in the real time analytics.
    Just had manually restart the firewall

    I noticed the fix, but did not read this. Only restarting / reloading the firewall resolved it.
     
  10. eva2000

    eva2000 Administrator Staff Member

    43,074
    9,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,100
    Local Time:
    5:42 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah restart CSF Firewall will force CSF Firewall to redownload the GeoLite2 database if it wasn't previously downloaded if that was your problem
     
    • Agree Agree x 1