lmquang / docker-squid-simple-proxy

Runs Squid 3 as a minimal transparent proxy.

Home Page:https://hub.docker.com/r/thelebster/docker-squid-simple-proxy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Squid as a transparent proxy

Runs Squid 3 as a minimal transparent proxy.

Quick instructions:

docker pull thelebster/docker-squid-simple-proxy
docker run --name squid_proxy -d \
  --restart=always \
  --publish 3128:3128 -p 2222:22 \
  --volume /var/spool/squid \
  thelebster/docker-squid-simple-proxy

Run Squid with a basic HTTP authentication

We are going to use "ncsa_auth" that allows Squid to read and authenticate user and password information from an NCSA httpd-style password file when using basic HTTP authentication.

docker run --name squid_proxy -d \
  --restart=always \
  --publish 3128:3128 -p 2222:22 \
  -e SQUID_USER=qwerty \
  -e SQUID_PASS=iddqd \
  --volume /var/spool/squid \
  thelebster/docker-squid-simple-proxy

Run via docker-compose

Copy .env.sample file to .env and set the necessay varialbes SQUID_USER, SQUID_PASS and PORT.

docker-compose up --build -d

About

Runs Squid 3 as a minimal transparent proxy.

https://hub.docker.com/r/thelebster/docker-squid-simple-proxy/

License:Apache License 2.0


Languages

Language:Shell 72.6%Language:Dockerfile 27.4%