Kirk_Bauer_1018
Aug 14, 2007Nimbostratus
SNAT command and ports
I don't have time at the moment to set up a full test environment for this so I'm hoping for a little help. I have verified that for UDP traffic using the command "snat " will preserve the original source port, but I have only tested that for one source IP. If source IP 10.1.1.10 sends a UDP packet with a source port of 1234 and is SNATed to 172.16.1.2, what happens when source IP 10.1.1.11 sends a UDP packet with a source port of 1234 and the "snat" command also applies to that? Will the port be changed?
If so, is there any way I can force the port to remain unchanged? Can I do:
snat 172.16.1.2 [UDP::client_port]
and the source port will never be changed?