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

    Route traffic out and back in

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 482 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.
    • P Offline
      PerfectBake420 0
      last edited by

      I just setup a home automation server. I have NAT setup and can gain access when not on LAN. I want to be able to connect to this while on the LAN. I can not setup 2 connections in app. Any help is appreciated.

      1 Reply Last reply Reply Quote 0
      • N Offline
        netblues
        last edited by

        By nat you probably mean port forward.
        Use dns "override"
        While on lan, your device will query for the ip and pf will return internal ip. When remote, public dns will return the wan ip, and you will reach the target via port forward.

        Works amazingly well, for years.

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

          Yeah, DNS override or NAT reflection:
          https://docs.netgate.com/pfsense/en/latest/recipes/port-forwards-from-local-networks.html

          Steve

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