cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
941
Views
0
Helpful
12
Replies

help on nating for internal web server

raju jadhao
Level 1
Level 1
Hi, I have internal web server with IP Address 172.16.100.8 which is natted with public ip  My requirement is that I should able to access the web server internally (on local LAN) with public ip I checked this on Cisco and I am able to find out the following We normally define ip nat inside on local interface and ip nat outside on outside interface. INSTEAD OF THIS WE SHOULD USE ip nat enable on both interfaces to enable this. My current NAT Statement is as follows Ip nat inside source static 172.16.100.8 public ip  WHICH NEEDS TO BE CHANGED AS Ip nat source static 172.16.100.8 public ip Let me know is this a correct way of doing this and if yes then what are the implications of this.
12 Replies 12

Philip D'Ath
VIP Alumni
VIP Alumni

Can you please re-format your post to make it easier to read.

What platform is this one?

hi thanks for response.....

1) we have a local web server nated on public ip for external user for access.bur our requirement is internal user can access web server via internal ip as well as public ip is it posibale on router.

2) we don't have any firewall and dns server.

pls reply...

You didn't answer my question.  What platform is this?  Router?  ASA?

router........

What model router?

I think I would enable the local DNS server, and configure a static host entry for the server pointing to its private IP address.

Cisco 2811

Are you able to post your config?

Enable the DNS server with something like:

ip dns server

Configure your machine to use the router as your DNS server, and make sure you can lookup ordinary DNS entries, like www.google.com.

Then define a static host to IP address mapping, pointing the external URL to the internal IP address of your server.

ip host fqdn.com 192.168.x.x

interface FastEthernet0/0
ip address 172.16.100.2 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
service-policy input block
!
interface FastEthernet0/1
bandwidth 15360
ip address X.X.X.X 255.255.255.252
ip flow ingress
ip nat outside
ip virtual-reassembly in
duplex full
speed 100
crypto map MUPUVPN
service-policy output VOICEQoS

ip nat inside source route-map NONAT interface FastEthernet0/1 overload
ip nat inside source static 172.16.100.8 My public ip

hi, i am waiting for your reply.....

Did you try this?

not yes i am confusing ...pls guide me

any  example configuration for it....