Tor gateway packaged into a Docker container
100K+
Tor gateway packaged into a Docker container.
This container provides:
/etc/tor/torrc:
SocksPort 0.0.0.0:9050
DNSPort 0.0.0.0:53
ExitPolicy reject *:*
Usage:
$ docker run -d -p 9050:9050 -p 8080:8080 -p 53:53/udp tmiklas/alpine-tor-gw
Image tagged 0.4.3.5h introduces HTTP to Socks5 bridge on port 8080/tcp. It is active by default, so all that is needed to expose it or use right away in container-to-container comms. This makes it trivial to use tools like curl or wget with Tor.
Image tagged 0.4.2.6 introduces some optional configuration parameters (available also in later versions), that will NOT work with older images:
ControlPort on 9051/tcp - disabled by defaultExitPolicyTo enable ControlPort you have to set authentication method - otherwise Tor will disable ControlPort automatically.
Currently only password based authentication is supported and you can set password by defining ControlPassword environment variable (variable name is case sensitive).
Example:
$ docker run -d -p 9050:9050 -p 53:53/udp -p 9051:9051 -e ControlPassword=testpassword tmiklas/alpine-tor-gw
As with ControlPort, changing default exit policy is done via ExitPolicy environment variable.
Please read the Tor documentation before changing exit policies!
Example:
$ docker run -d -p 9050:9050 -p 53:53/udp -p 9051:9051 -e ExitPolicy="reject *:25" tmiklas/alpine-tor-gw
EOT
Content type
Image
Digest
sha256:52438749b…
Size
35.9 MB
Last updated
11 days ago
docker pull tmiklas/alpine-tor-gw