The content on this account/repository provided solely for educational and informational purposes. It is not intended for use in making any kind of business, investment and/or legal decisions. Although every effort has been made to keep the information up-to-date and accurate, no representations and/or warranties, express and/or implied, completeness, accuracy, reliability, suitability, and/or availability of the content.
This can be used to setup a Squid Server as a Forwarding and Caching Proxy.
Squid - https://www.squid-cache.org/Doc/
Always validate that docker-compose version is latest.
If not then use the latest released version. As of updating this document v2.24.0
was latest released version.
docker-compose up -d
docker-compose logs -f
As the default configuration provided here is sufficient as it provides default access to private network. We can validate this with curl.
# Check that access is allowed for any website with port 80 (http) or 443 (https).
# This should work.
curl --proxy http://127.0.0.1:3128 http://SOME_HTTP_WEBSITE
curl --proxy http://127.0.0.1:3128 https://SOME_HTTPS_WEBSITE
# Check that access is blocked for any website with some other ports (eg. 8443).
# This should not work.
curl --proxy http://127.0.0.1:3128 https://SOME_HTTPS_WEBSITE:8443
Configure User based authentication