|
| 1 | +## Disclaimer. |
| 2 | +The content on this account/repository provided solely for educational and informational purposes. |
| 3 | +It is not intended for use in making any kind of business, investment and/or legal decisions. |
| 4 | +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. |
| 5 | + |
| 6 | +## Squid. |
| 7 | +This can be used to setup a Squid Server as a Forwarding and Caching Proxy. |
| 8 | +Squid - https://www.squid-cache.org/Doc/ |
| 9 | + |
| 10 | +## Docker Compose Version. |
| 11 | +Always validate that [docker-compose](https://github.com/docker/compose/releases/) version is latest. |
| 12 | +If not then use the latest released version. As of updating this document `v2.24.0` was latest released version. |
| 13 | + |
| 14 | +### Starting the container. |
| 15 | +```bash |
| 16 | +docker-compose up -d |
| 17 | +``` |
| 18 | + |
| 19 | +### Checking the container logs. |
| 20 | +```bash |
| 21 | +docker-compose logs -f |
| 22 | +``` |
| 23 | + |
| 24 | +### Initial configuration validation. |
| 25 | +As the default configuration provided here is sufficient as it provides default access to private network. We can validate this with curl. |
| 26 | +```bash |
| 27 | +# Check that access is allowed for any website with port 80 (http) or 443 (https). |
| 28 | +# This should work. |
| 29 | +curl --proxy http://127.0.0.1:3128 http://SOME_HTTP_WEBSITE |
| 30 | +curl --proxy http://127.0.0.1:3128 https://SOME_HTTPS_WEBSITE |
| 31 | + |
| 32 | +# Check that access is blocked for any website with some other ports (eg. 8443). |
| 33 | +# This should not work. |
| 34 | +curl --proxy http://127.0.0.1:3128 https://SOME_HTTPS_WEBSITE:8443 |
| 35 | +``` |
| 36 | + |
| 37 | +### Additional configuration setup. |
| 38 | + |
| 39 | +[Documentation Config](https://www.squid-cache.org/Doc/config/) |
| 40 | + |
| 41 | +[Configure User based authentication](./configs/user-based-authentication.md) |
| 42 | + |
| 43 | +[Configure Certificate based authentication](./configs/certificate-based-authentication.md) |
| 44 | + |
| 45 | +[Configure Site based access](./configs/site-based-access.md) |
| 46 | + |
| 47 | +[Configure Caching](./configs/caching-configuration.md) |
| 48 | + |
| 49 | +[Backup and Restore](./configs/backup-and-restore.md) |
| 50 | + |
| 51 | +[Upgrading Squid](./configs/upgrading-squid.md) |
0 commit comments