In Progress CPANEL-41695 - Modsecurity Geo Database

ljj3

Well-Known Member
Nov 7, 2014
50
5
58
cPanel Access Level
Reseller Owner
Is GeoLite2-Country-Locations-en.csv the file that ModSecurity needs to have Geolocation Database pointed to?

I'm confused... My GeoIP.dat is very old, but the MAXMIND list of databases are al GeoIP2 which are not compatible with ModSecurity...
 
Last edited:

ljj3

Well-Known Member
Nov 7, 2014
50
5
58
cPanel Access Level
Reseller Owner
Hey there! Does this article help answer the questions about the differences? https://support.cpanel.net/hc/en-us/articles/1500011265202-How-do-I-install-mod-geoip-
What I'm looking for is the GeoIP (not GeoIP2) file the WHM ModSecurity Configuration page wants to see in the Geolocation Database field.

I had it looking at /usr/share/GeoIP/GeoIP.dat but it stopped working recently (although oddly it seems to work again)

CSF downloads the Maxmind files but in CSV format and I now think it's GeoIP2.

To sum up "what does WHM Modsec Configure" page looking for?
 

ljj3

Well-Known Member
Nov 7, 2014
50
5
58
cPanel Access Level
Reseller Owner
In general, our docs don't say much about this either. I've created case CPANEL-41695 for our developers to look into this and I'll let you know as soon as I have more information.
Thank you, sir!

It has been working like a charm up to now.