Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

NAT configuration for tcp port translation

Hi guys,

i m trying configuring NAT to Redirect TCP Traffic to Another TCP Port

topology.png

i am considering R1 as web server working on port number 8080 in insde of a internal network.

i have used this command on R4

ip nat inside source static tcp 10.1.123.1 8080 1.1.145.1 80

i am using this command on ISP1

ISP1#ttcp

Target IP address: 1.1.145.1

perform tcp half close [n]:

send buflen [8192]:

send nbuf [2048]:

bufalign [16384]:

bufoffset [0]:

port [5001]: 80

sinkmode [y]:

buffering on writes [y]:  

show tcp information at end [n]:

Output is

ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=80  tcp  -> 1.1.145.1

%Connect failed: Connection refused by remote host

My question is that how to make R1 to reply for the reqest that ISP1 has sent on port 8080.

2 REPLIES

Re: NAT configuration for tcp port translation

Try telnet:

telnet R1 80

That's assuming the rest of your nat config is okay though. I've never used ttcp before, but I could lab it up if needed.

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
New Member

NAT configuration for tcp port translation

Got the answer

To make R1 to reply on por tnumber 8080  we can use this command

R1#ttcp

transmit or receive [receive]: r

perform tcp half close [n]:

receive buflen [8192]:

bufalign [16384]:

bufoffset [0]:

port [5001]: 8080

sinkmode [y]:

121
Views
0
Helpful
2
Replies