02-03-2018 11:14 AM - edited 03-07-2019 12:22 AM
Hello I need some help
I have 2921 Cisco router. It is main router in my workplace. My net prowider gave me pool of public adresses. My web server is accessible on public ip adress: A.A.A.A from anywhere.
After doing NAT to another public address ( let's say B.B.B.B) from my local network 192.168.1.0 netmask 255.255.255.0 I can't access this server by it's public address (A.A.A.A) from any local network host. There is no problem when I address any host directly by any address from my public pool.
Do You have any idea why it is happening ?
I am sending my config:
urrent configuration : 988 bytes
>>>>>>>
>>>>>>> !
>>>>>>>
>>>>>>> version 15.1
>>>>>>>
>>>>>>> no service timestamps log datetime msec
>>>>>>>
>>>>>>> no service timestamps debug datetime msec
>>>>>>>
>>>>>>> service password-encryption
>>>>>>>
>>>>>>> !
>>>>>>>
>>>>>>> hostname AP
>>>>>>>
>>>>>>> !
>>>>>>>
>>>>>>> spanning-tree mode rapid-pvst
>>>>>>>
>>>>>>> !
>>>>>>>
>>>>>>> !
>>>>>>>
>>>>>>> interface GigabitEthernet0/0
>>>>>>>
>>>>>>> description ## WAN ##
>>>>>>>
>>>>>>> ip address B.B.B.B 255.255.255.252
>>>>>>>
>>>>>>> no ip proxy-arp
>>>>>>>
>>>>>>> ip nat outside
>>>>>>>
>>>>>>> duplex auto
>>>>>>>
>>>>>>> speed auto
>>>>>>>
>>>>>>> !
>>>>>>>
>>>>>>> interface GigabitEthernet0/1
>>>>>>>
>>>>>>> description ## LAN ##
>>>>>>>
>>>>>>> ip address 192.168.1.1 255.255.255.0
>>>>>>>
>>>>>>> no ip proxy-arp
>>>>>>>
>>>>>>> ip nat inside
>>>>>>>
>>>>>>> duplex auto
>>>>>>>
>>>>>>> speed auto
>>>>>>>
>>>>>>> !
>>>>>>>
>>>>>>> ip nat pool NAT_POOL B.B.B.B B.B.B.B netmask
>>>>>>> 255.255.255.240
>>>>>>>
>>>>>>> ip nat inside source list 100 pool NAT_POOL
>>>>>>>
>>>>>>> ip classless
>>>>>>>
>>>>>>> ip route 0.0.0.0 0.0.0.0 C.C.C.C
>>>>>>>
>>>>>>> !
>>>>>>>
>>>>>>> access-list 100 remark == NAT ACL ==
>>>>>>>
>>>>>>> access-list 100 permit ip 192.168.1.0 0.0.0.255 any
>>>>>>>
Thank You for help
02-03-2018 11:24 AM - edited 02-03-2018 11:29 AM
Your description is not very clear. eg, you mention NAT for your web server but there is no sign of that in the config you posted.
Could you clarify.
Jon
02-04-2018 02:40 AM
Dear Jon
tThank You for reply.
The web server is connected by antoher small router. This small router has one of public addresses and it gives local ip for server. But it works. It is visible from internet .So to be clear I can access to my website from everywhere but as I wrote any host connected to the interface that has NAT can not access this server- can not access my website. I am wondering if the problem can be with access-list ?
Best regards
02-04-2018 03:22 AM
Hello
nat hairpining should resolve enabling you to access your internal web server via it public nat address
https://supportforums.cisco.com/t5/wan-routing-and-switching/nat-hairpinning/td-p/2475807
res
Paul
02-04-2018 04:48 AM
Hello,
how is the other small router connected to the Cisco ? Post a schematic drawing of what your setup looks like...
02-05-2018 04:44 AM
So this is block schematic. I know it is a little bit crazy how it is connected but this is what I'be got from predecessor.
When I will connect to the the whole local hosts to the other small router with WAN 212.87.232.8 everything works. But I want to achive it from int Vlan 1 on Cisco.
02-05-2018 07:16 AM
Hello,
you are using the same address space (192.168.1.x) on two different networks. What happens when you change the Vlan 1 addressing scheme to something unique, like 192.168.2.x ?
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