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

    Block DNS

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 2 Posters 1.0k 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.
    • G
      gio79
      last edited by

      Hello to all

      I'm pfSense and debugger recently and I need a hand to a rule that I should put on the firewall

      I explain my needs:
      I want LAN clients are not using their DNS, but use only the DNS set to pfSense

      Someone could give me a hand to do this?

      Thanks to all

      1 Reply Last reply Reply Quote 0
      • K
        kpa
        last edited by

        Create a block rule on LAN that blocks any TCP and UDP traffic to port 53 when the destination address is not the LAN address. Put the block rule before any pass rules.

        1 Reply Last reply Reply Quote 0
        • G
          gio79
          last edited by

          Hello thanks for the reply

          I made you a screen shots of my rules … let me know if it is correct in this way?

          Hello and thank you

          Immagine.jpg_thumb
          Immagine.jpg

          1 Reply Last reply Reply Quote 0
          • K
            kpa
            last edited by

            Yes that should work. You can also use just "LAN Address" (from the menu) to restrict the clients to querying just the LAN IP address.

            1 Reply Last reply Reply Quote 0
            • G
              gio79
              last edited by

              Hello, you can send me a screen shot of how it should be written properly rule on the firewall?

              thanks

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