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

    2 Programs - 1 Open Port – Possible?

    NAT
    4
    4
    953
    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
      archedraft
      last edited by

      Is it possible to share one forwarded port with 2 programs? If so, what would the  NAT: Port Forward rules look like?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        What programs where?  ???

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

          No you can not forward the same port to different IPs..

          So you have 1 publicIP, and lets call it privateIP-A and privativeIP-B (for example 192.168.1.100 and 192.168.1.101)

          Now lets say they are both running http server and listen on port 80.. They can do that sure..  But what you can not do is forward publicIP:80 to both at the same time privateIP-A and privateIP-B

          Just not going to work..

          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.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          • M
            muswellhillbilly
            last edited by

            The only way I can see to port forward to two internal systems is by using a load balancer. The load balancer splits the inbound traffic among a number of hosts behind it. So, for instance, you would have one port forward on your firewall pointing to the internal IP of the load balancer (I've used the incredibly simple-to-use ZenLoadBalancer for just this purpose), and then set up two or more hosts for the load balancer to forward the traffic onto. Useful if you're splitting http traffic load between hosts in your DMZ. If you don't mind editing config files, then HAProxy is also a very good load balancer - used by quite a few large, professional organisations.

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