Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Redirecting all DNS traffic to pfSense not working

    Scheduled Pinned Locked Moved Firewalling
    7 Posts 2 Posters 923 Views 2 Watching
    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.
    • B Offline
      bhjitsense
      last edited by

      I have an IoT subnet. On this subnet I want the TVs, Roku's, thermostats, etc to all have their DNS traffic redirected to the DNS servers I have specified in pfSense (Cloudflare). I followed this document to set this up. I thought it was working fine but then noticed a device on this subnet was talking with 8.8.8.8.

      Here's the image of the NAT redirect setup.
      0_1540043412563_Screen Shot 2018-10-20 at 9.42.27 AM.png

      And the subsequent firewall rule on that interface;
      0_1540043465121_Screen Shot 2018-10-20 at 9.42.58 AM.png

      As stated earlier, running packet capture, I see that at least one device on this subnet is successfully querying 8.8.8.8 and getting a response back. I have Cloudflare DNS setup in general settings.

      Thanks for any help!

      1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator
        last edited by

        And they are doing that on udp/tcp 53 - or some other port?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 26.07 | Lab VMs 2.9.0, 26.07

        1 Reply Last reply Reply Quote 0
        • B Offline
          bhjitsense
          last edited by

          The destination port is 53. It seems like the query first goes to the gateway, but then it immediately tries 8.8.8.8. Both the gateway and 8.8.8.8 reply. All over port 53.

          1 Reply Last reply Reply Quote 0
          • johnpozJ Offline
            johnpoz LAYER 8 Global Moderator
            last edited by

            The client can send query to 8.8.8.8 all it wants - you sniffed on the wan and saw this go out?

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 26.07 | Lab VMs 2.9.0, 26.07

            1 Reply Last reply Reply Quote 0
            • B Offline
              bhjitsense
              last edited by bhjitsense

              Well, it's weird but on the WAN I don't see traffic over 53 or to 8.8.8.8 - I do DNS over TLS on port 853 so that makes sense to not see anything over port 53. The source IP for the query response is 8.8.8.8. I see states for 8.8.8.8 on the IoT interface but not on the WAN interface. When I capture traffic on the IoT interface, it shows that the query response source IP is 8.8.8.8.

              I'm guessing when 8.8.8.8 is queried, the traffic is translated and the state is built, but the interface is none the wiser whether or not the return traffic is actually from 8.8.8.8.

              1 Reply Last reply Reply Quote 0
              • johnpozJ Offline
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz

                Exactly.. Client doesn't know answer didn't come back from 8.8.8.8

                It just really knows it gets an answer back to its source port it asked 8.8.8.8 from

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 26.07 | Lab VMs 2.9.0, 26.07

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bhjitsense
                  last edited by

                  Very cool. I learned something today.
                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy