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.
Contents
- Online Manuals
-
Current configuration examples
- Authentication
- Interception
- Content Adaptation features
- Caching
- Captive Portal features
- Reverse Proxy (Acceleration)
- Instant Messaging / Chat Program filtering
- Multimedia and Data Stream filtering
- Torrent Filtering
- SMP (Symmetric Multiprocessing) configurations
- High Performance service
- General
- Strange and Weird configurations
- External configuration examples
- Create new configuration example
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-3.1 the Manual is at http://www.squid-cache.org/Versions/v3/3.1/cfgman/
For Squid-3.2 the Manual is at http://www.squid-cache.org/Versions/v3/3.2/cfgman/
For Squid-3.3 the Manual is at http://www.squid-cache.org/Versions/v3/3.3/cfgman/
For Squid-3.4 the Manual is at http://www.squid-cache.org/Versions/v3/3.4/cfgman/
For Squid-3.5 the Manual is at http://www.squid-cache.org/Versions/v3/3.5/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/Groups
- 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
- ConfigExamples/Authenticate/WindowsActiveDirectory/Discussion
Interception
- ConfigExamples/Intercept/AtSource
- ConfigExamples/Intercept/CentOsTproxy4
- ConfigExamples/Intercept/Cisco2501PolicyRoute
- ConfigExamples/Intercept/Cisco3640Wccp2
- ConfigExamples/Intercept/CiscoAsaWccp2
- ConfigExamples/Intercept/CiscoIOSv11Wccp1
- ConfigExamples/Intercept/CiscoIOSv12Wccp1
- ConfigExamples/Intercept/CiscoIOSv15Wccp2
- ConfigExamples/Intercept/CiscoIos1246T2Wccp2
- ConfigExamples/Intercept/CiscoPixWccp2
- ConfigExamples/Intercept/DebianWithRedirectorAndReporting
- ConfigExamples/Intercept/FedoraCoreWccp2Receiver
- ConfigExamples/Intercept/FreeBsdIpfw
- ConfigExamples/Intercept/FreeBsdPf
- ConfigExamples/Intercept/FreeBsdWccp2Receiver
- ConfigExamples/Intercept/Ipfw
- ConfigExamples/Intercept/IptablesPolicyRoute
- ConfigExamples/Intercept/JuniperSRXRoutingPolicy
- ConfigExamples/Intercept/LinuxBridge
- ConfigExamples/Intercept/LinuxDnat
- ConfigExamples/Intercept/LinuxIpfwadm
- ConfigExamples/Intercept/LinuxLocalhost
- ConfigExamples/Intercept/LinuxRedirect
- ConfigExamples/Intercept/OpenBsdPf
- ConfigExamples/Intercept/PfPolicyRoute
- ConfigExamples/Intercept/SolarisOpenIndianaIPF
- ConfigExamples/Intercept/SslBumpExplicit
- ConfigExamples/Intercept/SslBumpWithIntermediateCA
Content Adaptation features
Caching
Captive Portal features
Reverse Proxy (Acceleration)
Instant Messaging / Chat Program filtering
Multimedia and Data Stream filtering
Torrent Filtering
Torrent filtering is not simple task and can't be done using Squid's only. It uses arbitrary ports, protocols and transport. You must also use active network equipment and some experience.
ConfigExamples/TorrentFiltering
SMP (Symmetric Multiprocessing) configurations
Squid SMP support is an ongoing series of improviements in Squid-3.2 and later. The configuration here may not be exactly up to date. Or may require you install a newer release.
High Performance service
see also WCCP v2 overview for high-availability service.
General
- ConfigExamples/BlockingMimeTypes
- ConfigExamples/ChrootJail
- ConfigExamples/ClusteringTproxySquid
- ConfigExamples/ClusteringTproxySquid/Discussion
- ConfigExamples/DynamicContent
- ConfigExamples/DynamicContent/Coordinator
- ConfigExamples/DynamicContent/YouTube
- ConfigExamples/DynamicContent/YouTube/Discussion
- ConfigExamples/FullyTransparentWithTPROXY
- ConfigExamples/MultiCpuSystem
- ConfigExamples/MultiplePortsWithWccp2
- ConfigExamples/NatAndWccp2
- ConfigExamples/PhpRedirectors
- ConfigExamples/SquidAndWccp2
- ConfigExamples/UbuntuTproxy4Wccp2
- 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)
Create new configuration example
Choose a good WikiName for your new example and enter it here:
