Router - Port Forwarding

You will need to have already set your interfaces to inside and outside using the commands,

ip nat ouside
ip nat inside 

Once done you can add the command below. This would allow the IP to be accessed on port 23 via the IP address of the interface fa 0/0 using port 2333.

ip nat inside source static tcp 23 interface fastEthernet 0/0 2333 

Note !! Rember that in the case above the syntax is for NAT`ing the source but also works the other way round, i.e NATs the destination.

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001