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

    Redirect Rule

    Scheduled Pinned Locked Moved Firewalling
    9 Posts 4 Posters 3.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.
    • B
      blak111
      last edited by

      Are there any plans for a redirect rule that could be applied just like a firewall rule?

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

        Firewall -> NAT

        1 Reply Last reply Reply Quote 0
        • B
          blak111
          last edited by

          How would I setup a rule to redirect all outbound DNS (tcp/udp 53) to a specific DNS server?

          1 Reply Last reply Reply Quote 0
          • M
            monty12
            last edited by

            you would use policy based routing, just put the rules in at the top of the list

            1 Reply Last reply Reply Quote 0
            • B
              blak111
              last edited by

              In NAT? Because the regular firewall rules only allow choosing a different gateway.

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                Should be able to accommodate this with a LAN port forward. Might have to forward to the LAN IP to use the caching DNS server, and point it to which ever server you want internal clients to use.

                1 Reply Last reply Reply Quote 0
                • B
                  blak111
                  last edited by

                  So would this catch all outbound dns traffic, or just traffic directed towards the LAN IP of the pfSense box?

                  1 Reply Last reply Reply Quote 0
                  • C
                    cmb
                    last edited by

                    that would catch all outbound traffic. There's another problem there because we don't allow policy NAT, the DNS requests from your DNS server itself will also be redirected back to itself unless it's on a different interface of the firewall.

                    1 Reply Last reply Reply Quote 0
                    • B
                      blak111
                      last edited by

                      That won't be a problem because the DNS server does reside on another network. Thank you for the help. I will try it out when I get a chance and post results.

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