Squid Proxy configuration with examples
This is a collection of example Squid Configurations intended to demonstrate the flexibility of Squid.
Warning: Any example presented here is provided “as-is” with no support or guarantee of suitability. If you have any further questions about these examples please email the squid-users mailing list.
Online Manuals
We now provide an the Authoritative Configuration Manual for each version of squid. These manuals are built daily and directly from the squid source code to provide the most up to date information on squid options.
For Squid-2.6 the Manual is at http://www.squid-cache.org/Versions/v2/2.6/cfgman/
For Squid-2.7 the Manual is at http://www.squid-cache.org/Versions/v2/2.7/cfgman/
For Squid-3.0 the Manual is at http://www.squid-cache.org/Versions/v3/3.0/cfgman/
For Squid-3.1 the Manual is at http://www.squid-cache.org/Versions/v3/3.1/cfgman/
A combined Squid Manual can be found at http://www.squid-cache.org/Doc/config/ with details on each option supported in Squid, and what differences can be encountered between major Squid releases.
Current configuration examples
Categories:
Authentication
- ConfigExamples/Authenticate/Bypass
- ConfigExamples/Authenticate/Kerberos
- ConfigExamples/Authenticate/Ldap
- ConfigExamples/Authenticate/LoggingOnly
- ConfigExamples/Authenticate/MultipleSources
- ConfigExamples/Authenticate/Mysql
- ConfigExamples/Authenticate/Ntlm
- ConfigExamples/Authenticate/NtlmCentOS5
- ConfigExamples/Authenticate/NtlmWithGroups
- ConfigExamples/Authenticate/Radius
- ConfigExamples/Authenticate/WindowsActiveDirectory
Interception
- ConfigExamples/Intercept/AtSource
- ConfigExamples/Intercept/CentOsTproxy4
- ConfigExamples/Intercept/Cisco2501PolicyRoute
- ConfigExamples/Intercept/Cisco3640Wccp2
- ConfigExamples/Intercept/CiscoAsaWccp2
- ConfigExamples/Intercept/CiscoIOSv11Wccp1
- ConfigExamples/Intercept/CiscoIOSv12Wccp1
- ConfigExamples/Intercept/CiscoIos1246T2Wccp2
- ConfigExamples/Intercept/CiscoPixWccp2
- ConfigExamples/Intercept/FedoraCoreWccp2Receiver
- ConfigExamples/Intercept/FreeBsdIpfw
- ConfigExamples/Intercept/FreeBsdPf
- ConfigExamples/Intercept/FreeBsdWccp2Receiver
- ConfigExamples/Intercept/Ipfw
- ConfigExamples/Intercept/IptablesPolicyRoute
- ConfigExamples/Intercept/LinuxDnat
- ConfigExamples/Intercept/LinuxIpfwadm
- ConfigExamples/Intercept/LinuxLocalhost
- ConfigExamples/Intercept/LinuxRedirect
- ConfigExamples/Intercept/OpenBsdPf
Captive Portal features
Reverse Proxy (Acceleration)
Instant Messaging / Chat Program filtering
Multimedia and Data Stream filtering
High Performance service
see also WCCP v2 overview for high-availability service.
General
- ConfigExamples/BlockingMimeTypes
- ConfigExamples/ChrootJail
- ConfigExamples/DynamicContent
- ConfigExamples/DynamicContent/YouTube
- ConfigExamples/DynamicContent/YouTube/Discussion
- ConfigExamples/FullyTransparentWithTPROXY
- ConfigExamples/MultiCpuSystem
- ConfigExamples/MultiplePortsWithWccp2
- ConfigExamples/NatAndWccp2
- ConfigExamples/PhpRedirectors
- ConfigExamples/SquidAndWccp2
- ConfigExamples/Wccp2AndNat
- ConfigExamples/WebwasherChained
Strange and Weird configurations
This is a section for weird (and sometimes wonderful) configurations Squid is capable of. Clued in admin often find no actual useful benefits from going to this much trouble, but well, people seems to occasionally ask for them…
External configuration examples
* http://freshmeat.net/articles/view/1433/ – Configuring a Transparent Proxy/Webcache in a Bridge using Squid and ebtables (Jan 1st, 2005)