This is a Docker container for running DansGuardian. DansGuardian is a proxy that filters web content using a variety of methods.
This docker image is available on the docker index, and is based on this image.
Run:
sudo docker run -d --name dansguardian -v /host/path:/config -p 9999:8080 -t docker-dansguardian-clamav
Replace /host/path with the path in which to store the configuration. Replace 9999 with the port you wish to set as your proxy port in order to filter using DansGuardian.
After starting the container, update your network connection or web browser to use the IP address of your docker host and port 9999 (or whatever you chose) as the proxy.
To check the status, run:
docker logs dansguardian
By default, this container uses an internal Squid proxy. If you want to use a different proxy, configure the PROXYIP and PROXYPORT environment variables, like so:
sudo docker run -d --name dansguardian -v /host/path:/config -p 9999:8080 -e PROXYIP=192.168.1.100 -e PROXYPORT=8118 -t docker-dansguardian-clamav
For example, I use a privoxy proxy to remove ads, and point DansGuardian to use it as the proxy.
You can control what DansGuardian blocks by editing the files in the lists subdirectory of your config directory. For more information, see the DansGuardian documentation.