Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using port numbers for Cisco NAT 1

Status
Not open for further replies.

slach

Programmer
Aug 31, 2001
2
US
I'm a newbie to the Cisco router world (I'm a programmer by trade); however, I've set up a 1605 router NAT for my company that is pretty elementary and seems to work.

The question is: how can I use NAT to isolate a specific TCP port on my "outside" to a specific "inside" number.

Currently I have one outside address that is overloaded for all inside addressed machines.

Can one simply map, say, 192.168.1.4 to 1.1.1.1:port# -- i.e. using that notation?

Or, am I showing how completely ignorant i am?

Any help is appreciated.

 
ip nat inside source list 1 interface Ethernet1 overload
!
ip nat inside source static tcp 192.168.50.4 80 192.168.1.2 80 extendable

This example forwards port 80 from .2 to a specific IP of .4
192.168.50.4 is the target IP
192.168.1.2 is the source IP, in this case the E1 port where all traffic comes in from.

MikeS
"Diplomacy; the art of saying 'nice doggie' till you can find a rock" Wynn Catlin
 
This is a note of thanks to MikeS for helping me out -- thanks so much!

Seth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top