Skip to content

thelebster/docker-squid-simple-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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