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

    NAT/Firewall for hosting public-facing DNS server

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 586 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.
    • C
      chucklehead
      last edited by

      Version 2.3.2-RELEASE-p1

      I am trying to host a public dns server that lives in the DMZ and am having issues. Any insight would be greatly appreciated.

      I (successfully) utilize pfBlockerNG to block ad's, etc. on the local network. pfBlockerNG leverages the DNS Resolver which I think is part of the problem.

      I have the NAT and firewall rules set in the same manner for natting port 80 to a webserver.

      When I run a test externally using nslookup and specifying the server. I get a request time-out… Watching the firewall logs I see the :53 requests going to the gateway address instead of the nat ip.

      Current set is a 1:1 NAT

      In the configuration of DNS Resolver it says Queries to other interface ip's not selected below are disgarded.

      How do I set it so that DNS queries on port 53 destined for the natted IP wont get routed to the gateway address and then get disgarded?

      Screenshots are attached

      1-1.jpg
      1-1.jpg_thumb
      firewall.jpg
      firewall.jpg_thumb
      outbound.jpg
      outbound.jpg_thumb
      nslookup.jpg
      nslookup.jpg_thumb
      log.jpg
      log.jpg_thumb
      resolver.jpg
      resolver.jpg_thumb

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