Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Exclude domain from Suricata

    Scheduled Pinned Locked Moved IDS/IPS
    5 Posts 2 Posters 770 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      milindhvijay
      last edited by

      Hello,

      I am trying to understand if Suricata allows to exclude a particular domain from being blocked.
      I have SID 2027758 (emerging-dns.rules) enabled which blocks DNS query for .cc TLD. Now I want to exclude a domain from from this rule let's say "xyz.cc". Is it possible?

      Thanks.

      bmeeksB 1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks @milindhvijay
        last edited by bmeeks

        @milindhvijay said in Exclude domain from Suricata:

        Hello,

        I am trying to understand if Suricata allows to exclude a particular domain from being blocked.
        I have SID 2027758 (emerging-dns.rules) enabled which blocks DNS query for .cc TLD. Now I want to exclude a domain from from this rule let's say "xyz.cc". Is it possible?

        Thanks.

        You can copy that rule over into a custom rule and then edit the action to be PASS instead of ALERT. You will need to give your custom rule a different SID that is unique from all the other SIDs in use. But be aware that PASS rules supersede all other rules, and once a PASS rule matches, that traffic flow bypasses all other rules. But you can do what you ask using a custom rule.

        M 1 Reply Last reply Reply Quote 1
        • M
          milindhvijay @bmeeks
          last edited by

          @bmeeks I have no idea what you mean by any of this.

          bmeeksB 1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks @milindhvijay
            last edited by bmeeks

            @milindhvijay said in Exclude domain from Suricata:

            @bmeeks I have no idea what you mean by any of this.

            I don't know what your experience level is with managing an IPS. If you want to read the documentation on creating Suricata rules, here is a link to the official docs: https://docs.suricata.io/en/suricata-7.0.4/rules/index.html.

            If you don't know how to write rules, and don't want to learn, then you won't be able to accomplish what you desire because doing so requires a custom rule.

            M 1 Reply Last reply Reply Quote 1
            • M
              milindhvijay @bmeeks
              last edited by

              @bmeeks You are right. I have "zero" experience with managing an IPS. I really didn't understand what you meant before till I read your post about passlists.

              I was able to create a custom rule that pass DNS query to my specific domain. Thanks.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.