12-26-2013 08:16 AM - edited 03-07-2019 05:15 PM
Hi guys,
i m trying configuring NAT to Redirect TCP Traffic to Another TCP Port
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.
12-26-2013 08:27 AM
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 ***
12-26-2013 09:26 AM
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]:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide