Difference between revisions of "Squid"

From SME Server
Jump to navigationJump to search
(Add instructions howto cache windowsupdate downloads)
Line 37: Line 37:
 
Add this on file /etc/squid/squid.conf '''( This must be done thru templates! remember to put instructions here )'''
 
Add this on file /etc/squid/squid.conf '''( This must be done thru templates! remember to put instructions here )'''
  
******************************************************
 
hierarchy_stoplist cgi-bin ?
 
acl QUERY urlpath_regex cgi-bin \?
 
no_cache deny QUERY
 
cache_mem 16 MB
 
maximum_object_size 1280096 KB
 
cache_dir ufs /var/spool/squid 3000 16 256
 
  
# various windows versions
+
******************************************************
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
+
hierarchy_stoplist cgi-bin ?
refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims
+
acl QUERY urlpath_regex cgi-bin \?
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
+
no_cache deny QUERY
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
+
cache_mem 16 MB
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
+
maximum_object_size 1280096 KB
**************************************************************
+
cache_dir ufs /var/spool/squid 3000 16 256
 +
 +
# various windows versions
 +
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
 +
refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims
 +
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
 +
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
 +
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
 +
**************************************************************
  
 
Execute:
 
Execute:

Revision as of 14:53, 2 April 2008

Squid Proxy Server Settings

Incomplete.png Incomplete:
This article or section needs to be expanded. Please help to fill the gaps or discuss the issue on the talk page


SARG: Squid Analysis Report Generator

"Squid Analysis Report Generator is a tool that allow you to view "where" your users are going to on the Internet."

SARG Homepage: http://sarg.sourceforge.net/

SME SARG HowTo: Sarg This section should contain links to the various Squid modifiers - Squidguard, Dansguardian, Sarg, etc.

DansGuardian: true web content filtering for all

"DansGuardian is an award winning web content filtering proxy(1) for Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris that uses Squid(2) to do all the fetching. It filters using multiple methods. These methods include URL and domain filtering, content phrase filtering, PICS filtering, MIME filtering, file extension filtering, POST limiting."

DansGuardian Homepage: http://dansguardian.org/

SME DansGuardian HowTo: Dansguardian

SquidGuard

"SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid."

Squidguard Homepage: http://www.squidguard.org/

SME SquidGuard Howto: SquidGuard

ProxyPass

Despite the name, ProxyPass has nothing to do with the Squid proxy and is actually an Apache directive designed to allow a given URL on your server to return the content of some other webserver - either internal (behind your SME) or external.

Apache proxypass Documentation: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass

SME proxypass Howto: SME_Server:Documentation:FAQ#Proxy_Pass

Customizing Squid

Bypass the Proxy Server Without Disabling Your Transparent Proxy

Firewall#Bypass_Proxy

Caching WindowsUpdate download (and others too)

Add this on file /etc/squid/squid.conf ( This must be done thru templates! remember to put instructions here )


******************************************************
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 16 MB
maximum_object_size 1280096 KB
cache_dir ufs /var/spool/squid 3000 16 256 

# various windows versions
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
**************************************************************

Execute:

squid -k reconfigure