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

    Public dns redirect to internal host?

    Scheduled Pinned Locked Moved NAT
    3 Posts 3 Posters 832 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.
    • A
      Amiga500
      last edited by

      I have a web host inside of my lan (10.0.2.10) that is setup with a NAT port forward rule so,
      https://name.domain.com:11222 correctly points to this host.

      I can connect to this device from the outside as expected but I would like to also be able to connect to this device from the LAN using the public domain name instead of https://10.0.2.10:11122

      I tried using the "DNS Forwarder Override" using the documentation but it didn't work. Any help would be greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Split DNS is the way to go.  What version of pfSense are you using?  It sounds like you had the right idea but it didn't work for you somehow.

        https://doc.pfsense.org/index.php/Why_can't_I_access_forwarded_ports_on_my_WAN_IP_from_my_LAN/OPTx_networks

        1 Reply Last reply Reply Quote 0
        • dotdashD
          dotdash
          last edited by

          @beetlejelly:

          I tried using the "DNS Forwarder Override" using the documentation but it didn't work. Any help would be greatly appreciated.

          This is probably the best solution. Did you clear your DNS cache before deciding it didn't work?

          If you need to bounce the public IP back, this is NAT refection. Look under advanced, firewall nat. I would recommend only checking the box 'Enable automatic outbound NAT for Reflection' and enabling Reflection selectively on the NAT rule.

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