A tiny image (16MB only) hosting a caching proxy (Squid), cascaded with a filtering proxy (privoxy)
451
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 ?
You can run a proxy on a NAS. You can run a proxy on a Raspberry Pi (in this case, don't hesitate to drop me an Email, I'll make a special build.
You can change squid settings by mount a custom.conf into /opt/squid/custom.conf:
docker run -d -v -p 3128:3128 -p 3129:3129 synopsis8/squid-privoxy
If you want to use one external cache location
docker run -d -v %PATHTOCACHEDIR%:/var/cache/squid -p 3128:3128 -p 3129:3129 synopsis8/squid-privoxy
** Per default, the cache directory is owned by the squid user inside the container, If you plan to use a cache directory outside the container, make sure your PATH to cache directory is well writable for the container.
If you want to access your privoxy and squid configuration files from outside the container.
docker run -d -v %PATHTOCACHEDIR%:/var/cache/squid -v $HOME/privoxy.conf:/opt/privoxy/config -v $HOME/squid.conf:/opt/squid/squid.conf -p 3128:3128 -p 3129:3129 synopsis8/squid-privoxy
The image has an URL rewrite script to be able to modify request URLs. You can configure it by mounting a file into /opt/squid/rewriter.conf like this:
SED="$SED;s|^http://(.*google).hu|\1.com|g"
SED="$SED;s|^http://(.*google).com|302:\1.hu|g"
Content type
Image
Digest
Size
7.9 MB
Last updated
over 6 years ago
docker pull synopsis8/squid-privoxy