NAT – PAR configuration
January 12, 2013 2 Comments
Recently I have been practising NAT a lot , exploring many IOS options and configurations.
Imagine R2 is our telnet server and we need to configure R1 that when it receives packets destined for IP address of its Serial 0/0 interface for port 23 , it then redirects the traffic to our telnet server R2.
Please see below configuration:
R1#(config)#int f 0/0
R1#(config-if)#ip nat inside
R1#(config)#int s 0/0
R1#(config-if)#ip nat outside
R1#(config)#ip nat inside source static tcp 10.1.123.2 23 interface s0/0 23
R4#teln 131.1.14.1
Trying 131.1.14.1 ….Open
Username: R2
Password: R2
R2>
————————————————————————————————————————————————————————————–
Another similar scenario. Whenever R1 receives any traffic destined for the IP address of it’s S0/0 interface for ports 80 and 8080 then the traffic should be redirected to R3
R1#(config)#int f 0/0
R1#(config-if)#ip nat inside
R1#(config)#int s 0/0
R1#(config-if)#ip nat outside
R1#(config)#ip nat inside source static tcp 10.1.123.2 80 intre s0/0 80
R1#(config)#ip nat inside source static tcp 10.1.123.2 8080 intre s0/0 8080
R4#teln 131.1.14.1 80
Trying 131.1.14.1, 80 ….Open
Enjoy !
Tom
Excellent Tom.
Check out INE’s Petr Lapukhov’s article..
http://blog.ine.com/2008/02/15/the-inside-and-outside-of-nat/
where he discusses NVI based NAT. Very illuminating.
Rgds
Seamus
hi Seamus !
Yep INE blog !! One of the best out there and the top notch instructors !
Best
Tom