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

    Forward external DNS while inside network

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 550 Views 3 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
      blader18
      last edited by

      Hi guys,
      Noob question here.
      I have a dns and I can sucessefully create the NAT rulles to forward the traffic per port, if I'm out of home.
      When I'm home, connected to my internal network, how can I setup to forward the traffic to each port if I keep using the external dns?

      Thanks in advance.

      JKnottJ 1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        I assume you mean you have a DynDNS address and you want to access some internal resource using it's external FQDN?

        In which case use either split-DNS or NAT reflection. See:
        https://docs.netgate.com/pfsense/en/latest/recipes/port-forwards-from-local-networks.html

        Steve

        B 1 Reply Last reply Reply Quote 0
        • JKnottJ Offline
          JKnott @blader18
          last edited by

          @blader18

          Normally, you get the external DNS and then add host overides for the local stuff. I use the DNS Resolver, but you can also use the forwarder instead. Either way, you get external DNS.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          1 Reply Last reply Reply Quote 0
          • B Offline
            blader18 @stephenw10
            last edited by

            @stephenw10

            Hi Steve,

            That's exactly what I need.
            I have a Dyndns adress and I have several services in different network adresses, which externally are forwarded by port. I want to access them internally as if I was outside.

            1 Reply Last reply Reply Quote 0
            • stephenw10S Offline
              stephenw10 Netgate Administrator
              last edited by

              Then, yeah, follow that doc. Split-DNS is generally preferred if all you local devices can use it.

              Steve

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