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

    Route internal ip to different internal ip

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 552 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.
    • C
      canadianllama
      last edited by

      Hi, We have software that we use the ip of 192.168.0.156 to connect to.
      We have 8 hardware pfSense routers and 8 Site2Site IPSEC Vpns setup, and all 8 different locations all access this software through the VPN.
      Everyone uses this IP to connect to our software. 192.168.0.156

      Is it possible to somehow make it where if anyone tried to connect to that IP (anywhere on the local or VPN networks) 192.168.0.156 it will reroute them to the new location of 10.0.1.156?

      I'm sure there are million of good reasons to not do this, but if we can temporarily do it then we can make the migration so much smoother.

      Thanks

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Presuming you're accessing the software by TCP, if clients and server are on different network segments, connected to different pfSense interfaces, you can do that with a simple NAT port-forwarding rule.
        If both are connected to the same interface, a workaround with NAT port-forwarding on the WAN with NAT reflection + proxy should do it.

        C 1 Reply Last reply Reply Quote 0
        • T
          tim.mcmanus
          last edited by

          The best way to do things like this is to use DNS. Assign a DNS name to the server/service and use that for all of the clients. That way, when you do a migration, you only need to change the DNS entry (one change) versus making all of the individual changes on the client. It also helps reduce the complexity the routing you're attempting.

          C 1 Reply Last reply Reply Quote 0
          • C
            canadianllama @tim.mcmanus
            last edited by

            @tim-mcmanus Thank you for the tip, we have actually set that up already but we are working off the old system and unfortunately it was all IP driven - we are switching everything over now though so this idea will probably work best.
            I have set it up so that program.ourdomain.com will connect to the local IP if anything is within the local network OR the VPN, and if they are outside of the network then program.ourdomain.com will connect them to the external IP of the router.

            1 Reply Last reply Reply Quote 0
            • C
              canadianllama @viragomann
              last edited by

              @viragomann Thank you, I will be looking into this and can hopefully figure it out. Seems like a good thing to know.

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