Sign inSign up

andreas4all/tor-client

By andreas4all

•Updated about 5 years ago

Small linux distribution with TOR client.

Image
6

10K+

andreas4all/tor-client repository overview

⁠Docker TOR client

This is small docker container for TOR client. With this container you can create TOR socks for another programs.

This container is based on Alpine linux.

We using two ports - 9050 and 9051.

⁠How to run?

docker run -p 9050:9050 -p 9051:9051 -e PASSWORD=yourPassword --name tor_client andreas4all/tor-client:latest

Environment PASSWORD is for control TOR client. Default is emptyPassword.

⁠How to test?

You can test it with curl:

curl --socks5-hostname localhost:9050 https://api.ipify.org?format=json

If you use docker-machine hostname is from your machine, for example

curl --socks5-hostname 192.168.99.100:9050 https://api.ipify.org?format=json

⁠Select exit nodes

When you run docker container with EXIT_NODES you can customize TOR exit nodes. Nodes is in format {de},{fr}

docker run -p 9050:9050 -p 9051:9051 -e PASSWORD=yourPassword -e EXIT_NODES={de},{fr} --name tor_client andreas4all/tor-client:latest

⁠How to customize?

Create file userpoint.sh in root of this directory. If this file exists it will be started before entrypoint.sh. You can add additional parameters to TOR client.

Tag summary

Content type

Image

Digest

Size

9.5 MB

Last updated

about 5 years ago

docker pull andreas4all/tor-client