Tuesday, 23 April 2024

Port Forwarding Configuration in Cisco 800(C881-K9) Router...!!

 Hey guys...

In this lesson, i will give you a quick overview of port forwarding in cisco 800 VPN router.

The task is here that , in my diagram , I have e a web server in MY LAN with having a private IP address that is 192.168.1.10. and I want to access that web server from outside my network but as I have private IP on the web server I will not be able to access that without port forwarding .

i have one public IP which is assigned on my WAN interface that is connected to ISP . So I need to map my wan interface public IP to my Web server Private IP.


Find the configuration given below.

Syntax.

Use this command to enable port forwarding:

ip nat inside source static tcp "inside local ip" "external ip" 20 extendable
ip nat inside source static tcp "inside local ip" "external ip" 21 extendable
ip nat inside source static tcp "inside local ip" "external ip" 1020 extendable

An example of a FTP server POrt forwarding given below

router (conf)# ip nat inside source static tcp 192.168.1.20 85.84.84.45 21 extendable


My Web server Port forwarding Example..!


## You can use the same port for inside and outside users.

Router(config)# ip nat inside source static tcp 192.168.1.10 80 10x.xx.x.13 80 extendable

OR

## You Can use the different port for inside and outside users.(Recommended)

Router(config)#ip nat inside source static tcp 192.168.1.10 80 10x.xx.x.13 81 extendable


 

No comments:

Post a Comment