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

    Port forwarding while hiding public address

    Scheduled Pinned Locked Moved NAT
    2 Posts 1 Posters 1.6k 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
      babtras
      last edited by

      I've got a very old piece of equipment (~20 years old, 10Base5 Ethernet adapter) that I've attached to an isolated network with the help of a home museum of old network equipment. I need to make this appliance available to the Internet by forwarding port 1234 (example). My problem is that this device knows nothing of routing. It is hardcoded to reside on a /24 subnet with no means of configuring a default gateway. As such, when a client on the Internet attempts to connect to it, the device needs to see the traffic as coming from the local network (ie, hide the client's public IP).

      The device resides at 10.1.4.98. The pfSense interface for that network is 10.1.4.1. The device needs to see the Internet client traffic as coming from 10.1.4.1, or another virtual IP on the same /24 subnet.

      I know I've done this before but my feeble memory has reallocated that brainspace for the MacGuyver reruns that I've been watching lately.

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

        Nevermind. Thanks to anyone that spent any thought on this before I figured it out myself.

        Virtual IP at 10.1.4.2, changed to manual outbound NAT, set an outbound NAT rule: Interface "LAN2", Source any, destination 10.1.4.98, NAT address of the Virtual IP

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