Sign inSign up

xptsp/squid-privoxy

By xptsp

Updated 8 months ago

Squid + Privoxy HTTP proxy based on Alpine linux

Image
0

1.4K

xptsp/squid-privoxy repository overview

squid-privoxy

A docker image with Squid and Privoxy based on Alpine Linux. Now it has Squid as well for caching and modifying requests.

As soon as you have several devices connected to your network and accessing Internet (TV, computers, tablets and smartphones), you're better off running a proxy to access the Internet. One proxy or 2 proxies cascaded?

  • A filtering proxy will protect you from unwanted ads
  • A filtering proxy will speed up your Internet browser, because you will no longer require to add an blockAds extention in any of the browsers of your devices and computers.
  • A cache proxy will speed up your Internet surfing by caching all latest used objects and load only what is necessary.

Launching Container:

Docker compose file for this container:

services:
  squid-privoxy:
    image: xptsp/squid-privoxy:latest
    container_name: squid-privoxy
    ports:
      - 3128:3128     # Squid HTTP proxy server
      - 3129:3129     # Squid Transparent HTTP server
      - 3130:3130     # Squid Transparent HTTPS server
      - 8118:8118     # Privoxy server
      - 8080:8080     # Container WebUI
    #environment:
      # Uncomment next line to add privoxy-blocklist to crond (15min, daily, hourly, weekly, monthly)
      #- UPDATE_BLOCKLIST=weekly
    volumes:
      - ./cache:/var/cache/squid
      #- ./logs:/var/log/squid
      #- ./privoxy:/etc/privoxy
      #- ./squid:/etc/squid
    restart: always

If Squid and Privoxy settings directories are mounted, any missing Squid and/or Privoxy files are copied into their respective directories. Existing configurations will NOT be overridden unless they are older than the default files in this container.

The privoxy-blocklist.conf file can be found at /etc/privoxy/privoxy-blocklist.conf. When environment variable UPDATE_BLOCKLIST is set, the script is run at container launch, as well as added to the crond tasks at the specified cron period (15min, daily, hourly, weekly, or monthly).

Project History:

v0.4 - Release
  • Fixed AltHTTPd service so that SARG results are in root directory of web server.
  • Fixed issue where missing configuration files stopped Squid from starting.
  • Fixed issue where wrong location of Squid configuration files is used during startup.
v0.3 - Release
v0.2 - Release
  • Added support for HTTPS transparent proxying (port 3130)
  • Removed non-functional URL rewriter script.
v0.1 - Release
  • Forked from synopsis8/squid-privoxy.
  • Fixed issue where the modified Squid and Privoxy weren't being placed in their respective directories.
  • Empty mounted configuration folders now have default Squid and Privoxy configurations copied into them.
  • Added privoxy-blocklist to the repo.

Tag summary

Content type

Image

Digest

sha256:346790bff

Size

23.6 MB

Last updated

8 months ago

docker pull xptsp/squid-privoxy