Redirect internal Ip > External
-
Hi,
I've an application which has an hardcoded internal ip address in it's code (192.168.6.13) for reachint an internal mail server.
At the moment we're decoming the mail server, so the ip address 192.168.6.13 will no longer reachable.I want to redirect all traffic destignated for 192.168.6.13 being redirected to an external ip (reachable over WAN).
What's the best way to achive this redirection? I played around with NAT, 1:1 nat but without any success ...
PS.: it's not possible to change the ip address in the code
brg,
-
@bibawa said in Redirect internal Ip > External:
it's not possible to change the ip address in the code
I find that hard to believe - where did this app come from, written in house and now the writer is no longer with the company?
Should of pointed to fqdn not some IP.
Anyway - assume your pfsense has an IP on this 192.168.6 network? If so then create a vip so it answers arp for 192.168.6.13
Then create a port forward sending the traffic where you want to send it. If the sender is on a different network that routes through pfsense say the client it on 192.168.5/24 for something then you do not need to create the vip.