Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

ACL setup on Procurve 8212

psycho.chicken
Regular Advisor

ACL setup on Procurve 8212

I need to setup a ACL (?) on our procurve 8212, to allow access to vlan 80 to get to the internet, our dns servers and nothing else.

I'm pretty good with the procurves, but have never done acl's...

I'm googling.. but figured i'd start a thread anyways.

So -
vlan 80 needs to get to the internet (all ports ar efine, FW will determine ports)
Vlan 80 needs to get to -
firewall - 10.10.10.1
DNS - 10.10.10.76
DNS - 10.10.10.70

I dont want them getting to any of our other networks or sister companies on the MPLS.
This includes all 10.11.0.0/16 or 10.12.0.0/16 networks. Or any of the other 10.10.1-9.0/24 networks that are local.

Thanks!
10 REPLIES
Mohammed Faiz
Honored Contributor

Re: ACL setup on Procurve 8212

Hi,

A couple of things there.
Your vlan 80 clients won't need to reach the firewall (their traffic is routed to the firewall but the _destination address_ is somewhere on the internet).
What it would be easiest to do is this (assuming the 8212 is the gateway for vlan 80 clients) :

- Permit access to DNS servers
- Deny access to all other 10.* networks
- Permit access to anything else

You would apply this as an inbound ACL on the switch (the direction of the ACL is with respect to the switch, i.e. an inbound ACL on vlan 80 is filtering traffic inbound to the switch from clients on vlan 80)

HTH
Michael_Breuer
Esteemed Contributor

Re: ACL setup on Procurve 8212

Hello,

if your IP network in VLAN 80 is i.e. 1.1.1.0/24 then the ACL could be like this:

ip access-list extended ACL_80_IN
deny ip 1.1.1.0 0.0.0.255 10.11.0.0 0.0.255.255
deny ip 1.1.1.0 0.0.0.255 10.12.0.0 0.0.255.255
permit ip any any
vlan 80
ip access-group ACL_80_IN in

In this case the clients can't access the MPLS networks, but everywhere else. You have to do the permit any any, otherwise access to internet won't work.

Cheers,

Michael
www.ingentive.net
Ingentive Networks GmbH
psycho.chicken
Regular Advisor

Re: ACL setup on Procurve 8212

If i didnt want to allow access to ALL 10.* networks, except for 10.10.80.0/24 could i just do a -

deny ip 10.10.80.0 0.0.0.255 10.0.0.0 0.0.255.255

i have about 40 networks I would need to add to the deny, some 10's some 192 and some 172's...
psycho.chicken
Regular Advisor

Re: ACL setup on Procurve 8212

So i did this -

ip access-list extended "ACL_VLAN80_IN"
10 permit ip 10.3.80.0 0.0.0.255 10.3.0.76 0.0.0.0
20 permit ip 10.3.80.0 0.0.0.255 10.3.0.70 0.0.0.0
30 deny ip 10.3.80.0 0.0.0.255 10.3.0.0 0.0.255.255
40 deny ip 10.3.80.0 0.0.0.255 10.4.0.0 0.0.255.255
50 deny ip 10.3.80.0 0.0.0.255 10.0.0.0 0.0.255.255
60 deny ip 10.3.80.0 0.0.0.255 10.1.0.0 0.0.255.255
70 deny ip 10.3.80.0 0.0.0.255 10.2.0.0 0.0.255.255
80 deny ip 10.3.80.0 0.0.0.255 10.15.0.0 0.0.255.255
90 deny ip 10.3.80.0 0.0.0.255 10.16.0.0 0.0.255.255
100 deny ip 10.3.80.0 0.0.0.255 172.16.0.0 0.0.255.255
110 deny ip 10.3.80.0 0.0.0.255 172.17.0.0 0.0.255.255
120 deny ip 10.3.80.0 0.0.0.255 172.18.0.0 0.0.255.255
130 deny ip 10.3.80.0 0.0.0.255 172.19.0.0 0.0.255.255
140 deny ip 10.3.80.0 0.0.0.255 172.20.0.0 0.0.255.255
150 deny ip 10.3.80.0 0.0.0.255 192.168.100.0 0.0.254.255
160 permit ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255
exit
vlan 80
ip access-group ACL_VLAN80_IN in
wri mem

And i can still get everywhere on vlan 80...
Mohammed Faiz
Honored Contributor

Re: ACL setup on Procurve 8212

What's the subnet that your clients in VLAN 80 use and is the switch that you applied that ACL to the default gateway for the clients in VLAN 80?
psycho.chicken
Regular Advisor

Re: ACL setup on Procurve 8212

the gateway the cliente on vlan 80 go to is 10.3.80.100

psycho.chicken
Regular Advisor

Re: ACL setup on Procurve 8212

Sorry,

clients on vlan 80 use 10.3.80.0/24
The VLAn 80 DGW is 10.3.80.100 (one of many VLANs on the 8212)

Mohammed Faiz
Honored Contributor

Re: ACL setup on Procurve 8212

Ok, and when you say the vlan 80 clients can still see everything are you pinging/connecting to other clients on 10.* networks?
One thing to remember with routed ACL's is that they do not filter any traffic with a destination address that lives on the switch itself, i.e. if you ping other gateways on your 8200 that will still work.
psycho.chicken
Regular Advisor

Re: ACL setup on Procurve 8212

Yes,

i can ping 10.3.0.93 and 10.4.0.12, both should not be reachable if the rules are correct.
Mohammed Faiz
Honored Contributor

Re: ACL setup on Procurve 8212

That does seem strange then. Can you post up the config on that switch?