How to NAT/Change destination IP and Port
Hello,
I have a scenario where a Server A (IP x.x.x.x) on port 10 of FG 500D (5.2) is configured to send TCP and UDP traffic to Server B (IP y.y.y.y) on Port 11. Using static routes I am able to successfully test connectivity between Servers A and B (no static NAT for server B currently)
I want (but not sure how) to achieve the following,
- Intercept the incoming TCP / UDP stream from Server A
- change (or NAT) the source IP x.x.x.x of Server A to an IP (y.y.y.a) in the same subnet as Server B
- Manipulate the original packet destination address. I want the TCP stream to retain the destination as Server B (y.y.y.y) but send UDP traffic to a Server C (y.y.y.c) in the same network as Server B
So at the end I would expect Server B to receive TCP traffic from source IP a.a.a.a and Server C to receive UDP traffic from source a.a.a.a
I created an IP pool and applied a policy to perform the source NAT, and was able to see that the source IP is being change as the packet exits port 11. I still need assistance to change the destination of the packets.
All help is appreciated
Regards,
Moe Shea
