Redirect Internal IP to another Internal IP
-
We are updating our network with pfsense and will use a new IP range (10.10.10.xxx); the old range, 192.168.1.xxx, will not be used.
However, we have software that is hard coded to reach a specific internal IP 192.168.1.20 (server address).
How can I redirect the traffic from 192.168.1.20 to 10.10.10.20(the new address of the server)?
I got it using NAT 1:1, but this seems to be made for external IP and not an Internal one like I'm using.
Thanks
-
Is it not working with the 1:1 NAT rule?
You can use a port forward but you would also need to use an outbound NAT rule to avoid asymmetric routing if it's on the same interface.
Steve
-
@stephenw10 said in Redirect Internal IP to another Internal IP:
port forward but you would also need to use an outbound NAT rule to avoid asymmetric routing if it's on the same interface.
It works with 1:1; I will check the outbound rule. Should I remove the 1:1 rule, then?
-
@fazambuja There is no possible way to get this hard coded IP changed in the software?
Hard coding IPs has always been a bad idea.. If it was some fqdn you pointed to, then IP changes become no big deal, just change the dns to point to the new IP.
If you have software that is using hard coded IPs, and not possible to change - why the desire to move to a 10 network? Can you just not setup pfsense and use the same 192.168.1 network? That would make your life simpler ;)
-
@johnpoz You are right. I will use the old IP range to avoid problems. I just wanted to check if it was something more straightforward.
Thanks
-
@fazambuja while what your asking can be done, it for sure complexes the setup quite a bit.
Unless there is some specific reason to really change your network IP scheme to something other than the 192.168.1 I would leave it on that at least until such time that you retire that software or have a easy way to change the hard coded IP, best would be changing it to fqdn.
-
I mean I might argue that using 192.168.1.X is generally a bad idea if you ever want to connect to other private networks...
-
@stephenw10 Which is why asked what was the reasoning for switching, maybe that was the reason? But seems maybe not?
-
@stephenw10 I used it just as an example.