Docker-tor
Code
https://github.com/piwi3910/docker-tor
Features
build from alpine:latest to have the smallest container and smallest attack surface
Use different ports from standard to not clash with ports on Synology
Tested on synology :-) but will work elsewhere also
run with a special "tor_runner" user and not the default tor package user or root
open up the control port if you want and secure it
set the control port password on runtime
weekly rebuild of dev to include the latest alpine updates
All code provide in Github, so you can build it yourself if you don't trust me (You shouldn't trust anyone with your own privacy!)
Docker tags available
All builds are multi-arch for: AMD64, ARM 32bit and ARM 64bit
dev: latest release based on master github code -> use to get the latest features, but could be unstable
v1.0.0: tags with versions are stable releases
latest: This tag follows the latest stable version release NOT dev
Usage
Socks only - no controle port
docker run -d --restart=always --name tor-proxy -p 9150:9150 piwi3910/tor-proxy:latest
Copy
Socks + control port - default password
docker run -d --restart=always --name tor-proxy -p 9150:9150 -p 9051:9051 piwi3910/tor-proxy:latest
Copy
Default control port password: my_password
Socks + control port - your password
docker run -d --restart=always --name tor-proxy -p 9150:9150 -p 9051:9051 -e control_password=somepassword piwi3910/tor-proxy:latest
Copy
Web browser config
In your browser go to your proxy config
find socks proxy and fill in the ip of your synology or docker host with port 9150
If you run this locally on your pc (localhost) or else the ip of your synology
Default TOR settings
A docker Healthcheck will start running after 60 sec and connect to facebook over tor to verify tor is up and running,
It will restart the container if the tor connection goes down, Make sure to start your container with --restart-always to make sure
tor auto-heals
tor will try to create an new circuit every 15 sec
happy private browsing!