07-21-2016 09:07 AM - edited 03-08-2019 06:43 AM
I have seen several posts on port forwarding but each left out something that I am not sure about. I have a camera server on a LAN static IP (192.168.40.5) and have a static WAN IP issued by my ISP (70.111.111.111). I am switching out a lesser router with a Cisco and the only thing left is the port forwarding so we can reach the cameras from the outside. I have gig0/0 setup as the LAN and 0/1 as the WAN. Not sure if I need to set the port forwarding on the WAN or LAN interface, I am assuming WAN. Can someone tell me the command to forward something like this? (this is the port forwarding form my "old" router): Desc: Cam_01, Port From: 4444, Protocol: Both, IP: 192.168.40.5, Port To: 4444. So, basically, I need to forward port 4444 to 192.168.40.5. I am not a Cisco expert but have messed with them enough to program basic stuff and can make them work as I need them, just don't know the more advanced stuff, or more accurately, don't trust myself enough! Thanks for any help.
Solved! Go to Solution.
07-21-2016 09:30 AM
On your router you need a pat statement:
If the camera uses a TCP port
ip nat inside source static tcp 192.168.40.5 4444 70.111.111.111 4444
If the camera uses a UDP port
ip nat inside source static udp 192.168.40.5 4444 70.111.111.111 4444
HTH
07-21-2016 09:34 AM
Hi,
I think this can do trick:
ip nat inside source static tcp 192.168.40.5 4444 70.111.111.111 4444 extendable
With this statement, users that try to reach 70.111.111.111 port 4444 from the outside are automatically redirected to 192.168.40.5 port 4444 which in your case would be the camera server.
Hope this helps !
Jose
07-21-2016 09:30 AM
On your router you need a pat statement:
If the camera uses a TCP port
ip nat inside source static tcp 192.168.40.5 4444 70.111.111.111 4444
If the camera uses a UDP port
ip nat inside source static udp 192.168.40.5 4444 70.111.111.111 4444
HTH
07-21-2016 09:34 AM
Hi,
I think this can do trick:
ip nat inside source static tcp 192.168.40.5 4444 70.111.111.111 4444 extendable
With this statement, users that try to reach 70.111.111.111 port 4444 from the outside are automatically redirected to 192.168.40.5 port 4444 which in your case would be the camera server.
Hope this helps !
Jose
07-21-2016 10:29 AM
Do I need to do it on an interface config or just in the terminal config? Since you have "...nat inside...", if on an interface, I would assume the LAN interface?
Thanks!
07-21-2016 10:32 AM
Hi,
This will be on global mode not under the interface, but you need to have ip nat inside on the LAN and ip nat outside on the WAN interface.
Regards,
07-21-2016 10:40 AM
OK, I do have the "...nat inside....nat outside..." part done already. You have answered my question! Thank you very much!
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