Squid Access controls can be very complex, or very simple. The most important thing to remember is that it DOES MATTER in which order you place the ACL's.
ACL's are placed in the main config file for squid which is   /etc/squid/squid.conf


I will list a few common examples:

Standard ACL to allow all IP's on internal network:

acl   localnet   src  192.168.1.0/24
http_access allow  localnet


ACL to allow certain IP addresses:

acl   localnet   src   192.168.1.10  192.168.1.12  192.168.1.81
http_access  allow  localnet


ACL based on time restrictions:

acl  worktimes   time  [MTWHF]  [08:00-17:00]
http_access   allow  worktimes


More detailed ACL descriptions can be found  here.....























Copyright, eNet Solutions 2006