Skip to content

andreas4all/tor-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.