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

    Forward local IP to Other Local IP

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 428 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.
    • I
      indrajeet281
      last edited by

      Hi,

      I want to migrate one Server in another server, They both will be on the same IP on a different port.
      Earlier I have two distinct servers with different IP's
      let's say A has 1.2.3.4 and B 1.2.3.5.

      Now (A) 1.2.3.5. will be migrated to 1.2.3.4 on port no 81 and 
      (B) 1.2.3.4 will be in 1.2.3.4  on port no 80

      Now we have lots of App and Links with us from long ago configured with IP 1.2.3.5
      I want to forward local IP 1.2.3.5 to local IP 1.2.3.4:81
      If any local App or Link wants to connect with 1.2.3.5 should be redirected to 1.2.3.4:81

      Is there any way to do this through pfsense,

      :)

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

        why would something that is local to 1.2.3 even talk to pfsense to talk to something else on 1.2.3..

        "Now we have lots of App and Links with us from long ago configured with IP 1.2.3.5"

        You configured stuff to use an IP and not a FQDN??  Yeah fail for sure..

        You do understand that a machine especially a webserver for example can have more than 1 IP on the same network right.. So your new server can have 1.2.3.4 and 1.2.3.5 and serve up stuff on port 80 for either of them..  Your server could serve up http (80) on hundreds of different ips if you wanted too, etc..

        What you should be doing is redoing all your stuff that have a hard coded IP in them..  This is just bad bad bad idea all the way around!!

        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.