I have a requirement of converting outbound port number in a cisco router.
I have set of PCs which connects to the internet IP on port 5060 to be converted to port 6070 on cisco router. Means, the inbound connetion in the LAN interface will be on UDP 5060 and outbound should be on port 6070.
When the reply comes back, it needs to be converted again back to 5060 at the Cisco router.
How can i do it..? Is the access-list is enough? Or do i have to use Route Policy? Please advice with step by step commands.
For your information, there is already a PAT for normal internet connectivity in the cisco router.
Sorry, still not clear on your requirement.
If you are initiating traffic from client device behind the router towards the Internet server, the client will be sending the traffic towards UDP/5060, and you would like the router to translate the destination port to UDP/6070?
What is the Internet server ip address?
If the above statement is correct, then you need to configure the following:
ip nat outside source static udp 6070 5060