cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
413
Views
0
Helpful
2
Replies

NAT configuration for tcp port translation

pankaj kumar
Level 1
Level 1

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 2

John Blakley
VIP Alumni
VIP Alumni

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 ***

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]:

Review Cisco Networking for a $25 gift card