Control Web Panel

Security => CSF Firewall => Topic started by: DNA on January 01, 2020, 12:46:08 PM

Title: Country Code Lookups setting MM_LICENSE_KEY must be set in /etc/csf/csf.conf
Post by: DNA on January 01, 2020, 12:46:08 PM
Hi

Getting new error after CSF Automatic update .
Code: [Select]
# csf -raError:
Code: [Select]
Country Code Lookups setting MM_LICENSE_KEY must be set in /etc/csf/csf.conf to continue using the MaxMind databases
Solutions:  CSF Country Code Lists and Settings  (https://www.awsmonster.com/2020/01/cwp-getting-csf-firewall-error-after.html)

You MUST set the following to continue using the IP lookup features of csf,
otherwise an error will be generated and the features will not work

Title: Re: Country Code Lookups setting MM_LICENSE_KEY must be set in /etc/csf/csf.conf
Post by: ejsolutions on January 02, 2020, 11:44:46 AM
Your point is?
This is a change by Maxmind, not CSF nor CWP.
I signed up with Maxmind yesterday and the generated key worked fine on two installtions.
Granted, CSF could do with finding an alternative approach, especially for use with CC_DENY.
Title: Re: Country Code Lookups setting MM_LICENSE_KEY must be set in /etc/csf/csf.conf
Post by: DNA on January 02, 2020, 06:41:46 PM
Your point is?
This is a change by Maxmind, not CSF nor CWP.
I signed up with Maxmind yesterday and the generated key worked fine on two installtions.
Granted, CSF could do with finding an alternative approach, especially for use with CC_DENY.

I just shared my Knowledge with others for Community support . I am using CSF for Country Based Filtering . And it's working fine for me .

Learned from : How to Allow or Block Traffic by Country in the CSF Firewall ?
https://www.awsmonster.com/search/label/CSF
Title: Re: Country Code Lookups setting MM_LICENSE_KEY must be set in /etc/csf/csf.conf
Post by: ejsolutions on January 25, 2020, 12:03:57 PM
Just for completeness (and those of poor research skills)..
CSF now has two methods to lookup Country databases. Existing installations need to register with maxmind or switch to the alternate database provider, as documented in their readme.