Sample Configurations

To help you fully understand how Squid access control works, and to give you a head start developing your own rules, the following are some ACL lines you can try. Each line is preceded with one or more comment lines (starting with a #) explaining what it does:

# include the domains news.bbc.co.uk and slashdot.org# and not newsimg.bbc.co.uk or www.slashdot.org.acl newssites dstdomain news.bbc.co.uk slashdot.org# include any subdomains or bbc.co.uk or slashdot.orgacl newssites dstdomain .bbc.co.uk .slashdot.org# only include sites located in Canadaacl canadasites dstdomain .ca# only include working hoursacl workhours time MTWHF 9:00-18:00# only include lunchtimesacl lunchtimes time MTWHF 13:00-14:00 ...

Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.