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

    Pfsense force Redirect DNS request

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 1.2k 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.
    • S
      strike101
      last edited by

      I followed this guide so that all clients only uses pfsense DNS

      https://doc.pfsense.org/index.php/Redirecting_all_DNS_Requests_to_pfSense

      but what if i want to exclude a single client or pc ? do i create a new rule for this ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        If you click advanced on that port forward you can specify or exclude the source addresses to which the port forward applies.

        For your application, you probably want to create an alias containing the addresses you do not want DNS port forwarding for, click advanced, invert the match by checking the box, and choose the alias you have created.

        LEAVE THE SOURCE PORTS AS ANY or it WILL NOT work.

        ![Screen Shot 2016-05-18 at 12.12.33 AM.png](/public/imported_attachments/1/Screen Shot 2016-05-18 at 12.12.33 AM.png)
        ![Screen Shot 2016-05-18 at 12.12.33 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2016-05-18 at 12.12.33 AM.png_thumb)

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • S
          strike101
          last edited by

          thanks a lot !  :)

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