Edit the configuration of your SQUID (squid.conf)
# add these ACLs
acl netSubsetLAN src "/etc/squid/subsetLAN"
acl govar_all dstdomain -i .gov.ar
acl webDomain dstdomain "/etc/squid/webDomain"
acl webIPs dst "/etc/squid/webIPs"
# add these lines before the line http_access deny all
http_access allow netSubsetLAN
http_access allow netSubsetLAN webIPs
http_access allow netSubsetLAN webDomain
http_access allow netSubsetLAN govar_all
A very brief description:
The file "/etc/squid/subsetLAN" define an IP for each line. The IPs here are for the subset of IPs inside the LAN. For example,
192.168.1.20
192.168.1.21
192.168.1.22
The ACL govar_all defines a subset of destination domains where all domains with *.gov.ar will belong to this subset.
The file "/etc/squid/webDomain" define a domain for each line. For example,
www.google.com
maps.google.com
The file "/etc/squid/webIPs" define an IP for each line. The IPs here are for the destination IPs. You could use the command dig in a terminal. For example, open a terminal and type: dig www.google.com to find out the IPs of it domain. Then add them to this file.
http_access allow netSubsetLAN webDomain, it define an AND operation between netSubsetLAN and webDomain. It means, is allowed the http access for the IPs defined in netSubsetLAN only for those domains defined in webDomain.
References:
Concepto de ACL en SQUID
Squid Cache Wiki
email list - ACL squid?