04-10-2014 06:09 AM - edited 03-04-2019 10:45 PM
Hello,
I'm trying to do the following scenario.
I have a device inside our network that I only want to be able to talk to one specific public IP address outside our network. We use do use NAT so setting up a basic extended ACL is a little tricky for me. I was hoping someone could provide me with some direction. I want to allow any IP through between these two addresses only.
Thanks,
Solved! Go to Solution.
04-10-2014 10:43 AM
The acl is applied inbound on the LAN interface so it does not affect traffic going out to the LAN, only traffic coming from the LAN.
So when the internal host sends traffic outbound to the external host the first line in the acl permits it.
When the external host sends traffic back to the internal host the acl is not checked because the traffic is going out of the LAN interface to the internal host.
Jon
04-10-2014 07:17 AM
if you NAT all your source IPs (including that host) to the same public IP address it would be better to do it before the NAT happens eg -
client = 192.168.5.10
outside public IP = 195.66.10.5
access-list 101 permit ip host 192.168.5.10 host 195.66.10.5
access-list 101 deny ip host 192.168.5.10 any
access-list 101 permit ip any any
int <int/num> <-- this is the inside interface of your router
ip access-group 101 in
Jon
04-10-2014 07:17 AM
Hi Jon,
I understand the config except for the 2nd line "access-list 101 deny ip host 192.168.5.10 any" I need both addresses to be able to talk with each other wouldn't this not allow communication back to the inside host?
04-10-2014 10:43 AM
The acl is applied inbound on the LAN interface so it does not affect traffic going out to the LAN, only traffic coming from the LAN.
So when the internal host sends traffic outbound to the external host the first line in the acl permits it.
When the external host sends traffic back to the internal host the acl is not checked because the traffic is going out of the LAN interface to the internal host.
Jon
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