Is it possible to translate one local source IP address to different glabal addresses, with translation being based on destination port number?
Cisco 3825 and PIX 501 are available.
Within a concrete task, I need to send HTTPS requests from my client program to an outside web server, periodically changing a global address used by the program.
I have got a pool of 64 internet addresses.
I can change sent packets destination port number programmatically, and I hope to use these changed port numbers as a criterion when translating the source IP address.
I am about to revert the destination port number back to 443 after changing the global source IP address.
Best Answer
From a support forum static-pat-pix
Thus it seems we have two options:
NAT on the router; not recommended as it would be difficult to get through the PIX.
Change the IP address (private) on the host, and have a PIX rule for each private IP address.
As you did not give any real IP addresses, I will create a example.
On the hosts, use 10.0.0.1-10.0.0.15/28.
On the PIX, NAT to 196.0.0.1 - 196.0.0.1
Or you can NAT, one by one, with:
etc.
Now, every time you need to change your external IP address, just change the internal source IP address.