April 24th, 2003, 09:39 PM
Port Forwarding in Cisco IOS
Does anybody know the command to forward ports in the the Cisco IOS? Thanks.
April 24th, 2003, 10:08 PM
Assuming I am understanding you question correctly, if you are using a dynamic assigned address, you will have to do a static NAT translation to the dynamic address. The command below will do that for you:
ip nat inside source static udp 192.168.0.100 2385 interface Dialer1 2385
Just swap the 192.168.0.100 with the address of the machine you are opening up, pick udp or tcp for the type and change the 2385 to the port number that you want to forward.
Just enter the command in the config mode, you don't do it on any interface, just in the root of the config mode. Also, I have assumed that the dialer interface you are using is Dialer1 - change it if you are using another name for the dialer interface.If I am not understanding your question correctly let us know and maybe me or someone else can help, since I do not have much experiance with cisco IOS's.
Don\'t be a bitch! Use Slackware.
April 24th, 2003, 10:15 PM
forward ports? port mapping, maybe? Please explain what you are trying to accomplish and maybe we can help you out.... Thanks.
Mankind have a great aversion to intellectual labor; but even supposing knowledge to be easily attainable, more people would be content to be ignorant than would take even a little trouble to acquire it.
- Samuel Johnson
April 25th, 2003, 02:06 AM
are you reffering to IP default gateway?
Cisco IOS runs on routers, Cisco CAT OS runs on switches, Switches can forward port traffic, Routers will route it based on destination IP.
Please be more specific as to what you need to accomplish.
Ulter C. Sceadu CCNP
\"Don\'t make your lack of planning my emergency.\"
April 25th, 2003, 07:19 AM
I just want to point ports 20-23 to my linux box. Im using a cisco router.
April 25th, 2003, 08:35 AM
Good question, I would suggest heading over to http://www.cisco.com/univercd/cc/td/doc/product/ and
bookmarking that site. I have read a large amount of the material there and consider it essential to 'Ubering' up on my
Get OpenSolaris http://www.opensolaris.org/
April 25th, 2003, 11:25 AM
ip nat inside source static tcp "external IP" 23 "internal IP" 23
ip nat inside source static tcp "external IP" 20 "internal IP" 20
the external ip should be the router ip the internal should be your lunux box