I was unsuccessfull with config below:
The permit rules in ACL match all private ranges, on permit rules, policy applies and traffic is blocked. This works OK
The deny rules in ACL (40 50 60) are exclusions for private stuff I want to access. This part doesn't work. Seems like ACL processing doesn't stop at matching deny , but continues processing, finds permit, applies policy, blocking wanted traffic.
acl number 3176
description Allow DHCP & Internet access
rule 40 deny ip destination 10.0.0.0 0.255.255.255
rule 50 deny udp destination-port eq bootps
rule 60 deny udp destination-port eq bootpc
rule 80 permit ip destination 10.0.0.0 0.255.255.255
rule 90 permit ip destination 192.168.0.0 0.0.255.255
rule 100 permit ip destination 172.16.0.0 0.15.255.255
traffic classifier CL_MATCH3176 operator and
if-match acl 3176
traffic behavior Block
filter deny
qos policy POL_DHCP_INET
classifier CL_MATCH3176 behavior Block
interface GigabitEthernet1/0/5
qos apply policy POL_DHCP_INET inbound