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

    Redirecting DNS using iptable

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 1 Posters 1.5k 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.
    • J Offline
      jonnytabpni
      last edited by

      Hi There,

      I have a local DNS server on my network (Windows 2003). It's address is given out to my clients via DHCP. This windows DNS server is configured with OpenDNS servers as it's DNS forwarders. This means that anyone which using my local DNS server, they will get results from OpenDNS.

      Now, I want to be able to force all port 53 DNS requests to my local DNS server (So people can't change to another dns server via DHCP bypass).

      You may be thinking "Well why can't you just block port 53 in the normal pfsense GUI for all clients except the windows server?":

      It's because some folks here use AOL and AOL insists to use it's own DNS server and refuses to even connect if port 53 isn't available.

      So can I use iptables to redirect all port 53 traffic to my local windows server however somehow exclude the local server (As it will need to connect to OpenDNS)?

      Regards

      1 Reply Last reply Reply Quote 0
      • J Offline
        jonnytabpni
        last edited by

        hey folks.

        You may scrap most of the above. The firewall rule way does work..sortof.

        AOL still proxies everything via its own means.

        Any ideas how to make AOL use openDNS?

        I'm starting to think it's not possible :(
        Cheers

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