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

    Port forwarding from external IP to another external IP

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 3 Posters 532 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.
    • R
      ronniesmonasoutlook.com
      last edited by

      Hi,

      I'm new to PFSense and not sure if this can be done. I have seen some 2+ years old posts related to this topic but no solution is mentioned. Here's my situation.

      I have pfsense instance with 1 NIC with let's say Public IP is 1.1.1.1

      I have a web server instance that not on local network and hosted somewhere else with public IP 2.2.2.2

      VPN is not an option on these IPs. I'm trying to configure pfsense so all traffic arriving on ports (80,443,20,21,22) on IP 1.1.1.1 is forwarded to 2.2.2.2 on the same ports.

      I am able to do it with SOCAT utility using the following command

      socat TCP-LISTEN:80,fork TCP:2.2.2.2:80

      but it's a small utility and no proper deamon/service is available for it. The only other option is IPTable  but I really like pfsense GUI and I can use it for VPN as well.

      Can someone please help?

      1 Reply Last reply Reply Quote 0
      • T
        TeknikL
        last edited by

        I tried to do something like this with HAproxy and it didnt work, ill watch this thread!

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          You should watch his other thread.. He cross posted this exact question in multiple places - this one didn't get any traction.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

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