cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
514
Views
0
Helpful
1
Replies

Accessing inside LAN resources with their public IP

AHMADJ
Level 1
Level 1

Accessing inside LAN resources with their public IP

please note i have cisco 2921 router for expertise can you provide me configration to access lan servers from outside

below is connectivity diagrad

cisco 2921 port gig0/0-------------------connected to wan with puplic ip (x.x.x.x y.y.y.y)

cisco 2921 port gig0/1-------------------connected back to back LAN server with private ip ip (10.0.0.1 /30) server ip 10.0.0.2/30

1 Reply 1

brselzer
Cisco Employee
Cisco Employee

Hello,

 

Do you already have NAT configured on the device? If so, you should just be able to add a static NAT statement like so:

 

ip nat inside source static 10.0.0.2 interface gig0/0

 

Or even better would be to lock it down to a particular port so that all traffic doesn't go to the server:

 

ip nat inside source static tcp 10.0.0.2 80 interface gig0/0 80

 

The above would allow port 80 through but nothing else.

 

Hope that helps!

-Bradley Selzer
CCIE# 60833