Wednesday, April 22, 2015

Port Forwarding and NAT on Cisco Routers - Accessing private network from the internet


This article demonstrates on how to access your private network from outside- the internet, using port forwarding or static nat on cisco routers.

Port forwarding is redirecting a request from one ip address and port number combination to another by a gateway or router. So, Port forwarding allows remote computers (for example, computers on the internet to connect to a specific computer or service within a private local-area network (LAN).

LAB
In our scenario, we have used cisco router 887va, dialer 1 is the outside interface of the cisco router which is connected to the internet (ISP), and vlan 1 is the inside interface of the cisco router which is connected to the local network.

Looking at the above diagram, we need accessing the pc 192.168.50.11 from the internet, as you see in the diagram, the pc (My Pc) is connected to the internet using dsl modem in Germany, and the pc 192.168.50.11 is connected to the internet using cisco router 887VA in Palestine. The pc (My PC) from the internet in Germany will request the public ip of the cisco router and remote desktop port 3389, the router will forward or redirect this packet to the LAN PC 192.168.50.11 on port 3389, This represents the port forwarding.
Port forwarding is a part of network address translation (NAT).

Configuratiion Steps:
1- Configure redirecting the request of the public ip address or the outside interface of the cisco 887va and port number 3389 to the private ip 192.168.50.11

R(config)#ip nat inside source static tcp 192.168.5.11 3389 interface dialer 1 3389

2- Specify the inside interface and outside interface of the router

R(config)#int vlan 1
R(config)#ip nat inside
R(config)#int dialer 1
R(config)#ip nat outside




For more details and explanation , watch this video on youtube


To get automatic updates on your facebook, join a facebook group







4 comments:

  1. I Want know how to configure Dyndns in Cisco router 887VA

    ReplyDelete
  2. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. Amazon removals,

    ReplyDelete
  3. Great article Lot's of information to Read...Great Man Keep Posting and update to People..Thanks https://www.sorrisieservizi.it/internet/vpn-sicura-e-gratuita/

    ReplyDelete
  4. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. cisco partner in Dubai

    ReplyDelete