Yi Li | 25 Jun 22:43
Picon

modsecurity is not able to load the GeoIP.dat file

will appreciate if someone could give me an insight here.
thanks in advance.

installed mod_securiyt 2.5.9 on RHEL 5.
when starting mod_security by restart apache, see the error msg below:

./apachectl start
Syntax error on line 1301 of /opt/IBMIHS/conf/httpd.conf:
SecGeoLookupDB takes one argument, database for geographical lookups module.

here is the conf part in httpd.conf


# Load mod_security
           LoadModule security2_module modules/mod_security2.so
# Configure GeoIP blocking
           <IfModule mod_security2.c>
               SecGeoLookupDb /opt/GeoIP.dat            #specify GeoIP datafeed
               SecRuleEngine On
               SecRule REMOTE_ADDR " <at> geoLookup" "nolog"     # look up GEO data
               SecRule GEO:COUNTRY_CODE "! <at> streq US" "deny" # block all the ip address from outside US
           </IfModule>

------------------------------------------------------------------------------
_______________________________________________
mod-security-users mailing list
mod-security-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Appliances, Rule Sets and Support:
http://www.modsecurity.org/breach/index.html

Gmane