Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Anyone knows if it's possible to disregard failed logins to certain services in WHM/CSF by country ? e.g. I would like that users that are accessing server from my country, don't get banned if they fail their login few times. But, if someone fail from other country, he would get banned.

There are options CC_DENY/ALLOW in CSF that can be used to "filter" IP addresses by country. Anyone tried to do something like this ?

share|improve this question

1 Answer 1

CC_DENY/ALLOW sometimes do not work. I have tried them on my server, cannot be trusted.

Other option is to use the file "csf.ignore", you can put the ipaddresses in that file and restart both csf and lfd. It should work.

You can get IP ranges for countries from different website. Just google for them.

Also note that if you enable cphulk, it can also block the IP addresses.

Regards

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.