CSF country block but allow DNS
I've searched everywhere but couldn't find a solution, hopefully someone here knows a way. When using ConfigServer Firewall and configuring via WHM to use CC_DENY to block various countries, is there a way to whitelist a port or service such as DNS or exclude it from the country block? I've tested and it seems that CC_DENY also blocks a DNS lookup to the server, but in some cases Google, etc. has DNS lookups that originate in one particular country to service other, non-related countries. It would be nice to allow all port 53 traffic through all the time regardless if the country is blocked or not.
Any thoughts on how to accomplish this?
-
Thank you, it seems from the information provided that I can simply move my existing CC_DENY list down into CC_DENY_PORTS instead, and then specify ports other than 53 and those countries will still be able to hit DNS but not the ports I specify. I'll give that a try and let you know. 0 -
That sounds good! It's important to note that we don't make or provide support for CSF, but it's common enough software that we're usually able to point people in the right direction :D 0 -
It works good and was a quick fix, thank you! 0 -
Great - I'm glad that got things well for you! 0
Please sign in to leave a comment.
Comments
5 comments