Skip to main content

CSF country block but allow DNS

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! I've provided a direct link to the second post on this page which explains how you can block certain ports by country. You may just want to block 80 and 443 traffic by country, keeping UDP 53 open for DNS traffic:
    0
  • seenBEST
    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
  • cPRex Jurassic Moderator
    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
  • seenBEST
    It works good and was a quick fix, thank you!
    0
  • cPRex Jurassic Moderator
    Great - I'm glad that got things well for you!
    0

Please sign in to leave a comment.