Upon the start or restart of ConfigServer Security & Firewall (CSF), there's an error about MaxMind and a license.
As of 2019-12-29, MaxMind requires you to create an account on their site and generate a license key to use their databases.
This article with cover the process of installing a customer-provided license (MM_LICENSE_KEY) and ensuring MaxMind is set as the provider (CC_SRC).
An example of the error you may see is as follows:
*ERROR*: Country Code Lookups setting MM_LICENSE_KEY must be set in /etc/csf/csf.conf to continue using the MaxMind databases
Resolve MaxMind Error
IMPORTANT: A license key from MaxMind must be obtained to continue using the IP lookup features of CSF. InMotion Hosting does not provide a MaxMind license key. Otherwise, an error will be generated and the features will not work. Alternatively, you can change the Country Code Source (CC_SRC) value in /etc/csf/csf.conf from a 1 (MaxMind) to 2 (DB-IP, ipverse.net, and iptoasn.com). This is now the default on new installations of CSF.
- Log into Root WHM
- Under Plugins, click on ConfigServer Security & Firewall
- Under csf - ConfigServer Firewall, click on Firewall Configuration
- From the pull-down menu, select Country Code Lists and Settings
- Enter the MaxMind license into the
MM_LICENSE_KEY =
field - Make sure that the
CC_SRC =
option is set to1
for MaxMind - Scroll to the bottom and click on Change
- Click on Restart csf+lfd to activate the settings
Change Country Code Source Option
TIP: This can be followed to change the source from MaxMind to DB-IP, ipdeny.com, and iptoasn.com. They do not require a license.
- Log into Root WHM
- Under Plugins, click on ConfigServer Security & Firewall
- Under csf - ConfigServer Firewall, click on Firewall Configuration
- From the pull-down menu, select Country Code Lists and Settings
- Make sure that the
CC_SRC =
option is set to2
for DB-IP, ipverse.net, and iptoasn.com - Scroll to the bottom and click on Change
- Click on Restart csf+lfd to activate the settings
TIP: If you want a quick command to run, as Root, if you don't want to manually do this, run:sed -ine "s/CC_SRC = \"1\"/CC_SRC = \"2\"/g" /etc/csf/csf.conf; csf -r
Comments
0 comments
Article is closed for comments.