ACL on Cisco 3550 switch that will allow users access to the internal LAN, but not the internet
I have a VLAN configured on my Cisco 3550 switch like below. I need to create an ACL that allows users to access the LAN, but denies access to the internet and all outside resources. This VLAN needs to have complete unrestricted access to the LAN. I do have web based applications on this LAN, so they will still need to be able to use port 80 and port 443 locally. I just need to deny access to the internet. What would this ACL look like?
interface Vlan3
description Inside-Access-Only
ip address 192.168.52.1 255.255.255.0
Switches / HubsRoutersCisco
Last Comment
denver218
8/22/2022 - Mon
psychokraft
VLANs use what more looks like a policy or route map than just an ACL. The following is how it is done, however the actual ACL you will use may be different, I'm not 100% sure right this second and I don't ahve a free switch to check it on:
ip access-list extended local-traffic (creates the access list)
permit ip 192.168.52.0 0.0.0.255 192.168.0 0.0.0.255 (permit all traffic in your subnet
to all traffic in your subnet)
exit (exit ACL config mode)
vlan access-map block-outside 10 (first access map line with seq # 10)
match ip address local-traffic (match the ACL from above)
action permit (permit that traffic)
vlan access-map block-outside 20 (next access map line with seq # 20)
action drop (drop all unmatched traffic)
exit (exit access-map configuration)
vlan filter block-traffic vlan-list 3 (associate globally the access map
to a list of vlans that only includes
your vlan number 3)
Resource: CCNP Switch 642-813 Official Certification Guide, pg.398 - 399
ip access-list extended local-traffic (creates the access list)
permit ip 192.168.52.0 0.0.0.255 192.168.0 0.0.0.255 (permit all traffic in your subnet
to all traffic in your subnet)
exit (exit ACL config mode)
vlan access-map block-outside 10 (first access map line with seq # 10)
match ip address local-traffic (match the ACL from above)
action permit (permit that traffic)
vlan access-map block-outside 20 (next access map line with seq # 20)
action drop (drop all unmatched traffic)
exit (exit access-map configuration)
vlan filter block-traffic vlan-list 3 (associate globally the access map
to a list of vlans that only includes
your vlan number 3)
Resource: CCNP Switch 642-813 Official Certification Guide, pg.398 - 399