cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
468
Views
0
Helpful
1
Replies

Port Translation and(or) Redirection using Cisco IOS

scheikhnajib
Level 1
Level 1

Hi There,

I'm facing a "What I thought to be easy" scenario as following:

I have an internal proxy server that listens on multiple ports (80, 443, 21 ...etc) and forwards these requests to an extrenal proxy (outside the network) with the same ports.

The external proxy listens only to one port TCP/3128 and the internal proxy is currently sitting behind a 3Com router that will be replaced with a Cisco 2811 router.

The 3Com is currently changing the destination port in each request that is sent from the internal proxy to the external proxy (bi-directionally). i.e. if the internal proxy IP is 192.168.1.1 and the external IP is x.x.x.x, the request will be:

S IP : 192.168.1.1

D IP : x.x.x.x

D Port : 80

The 3Com is changing the request to:

S IP : 192.168.1.1

D IP : x.x.x.x

D Port : 3128

and this applies to any other TCP port such as 443 or 21 or 25.

How to do this on a Cisco IOS router? It sounds very simple but it looks like I'm missing something very silly here.

Help would be highly appreciated.

Salem.

1 Reply 1

grant.maynard
Level 4
Level 4

Sorry to be the bearer of bad news, but I can't see a way. In IOS you could use a static NAT to redirect one port, but you couldn't map several ports to the same destination port because that would violate the 1:1 nature.

NAT Overview at http://www.cisco.com/en/US/partner/tech/tk648/tk361/technologies_white_paper09186a0080091cb9.shtml

Perhaps someone can suggest a way, or else you'll have to change client's proxy ports,