rdsubhas / docker-tor-privoxy-alpine

The smallest (15 MB!!) docker image with Tor and Privoxy on Alpine Linux
https://hub.docker.com/r/rdsubhas/tor-privoxy-alpine/
MIT License
213 stars 92 forks source link

change exit node country #8

Open random-robbie opened 7 years ago

random-robbie commented 7 years ago

Hi,

I wish to set a specific country for tor exit node how can i do this as i can not find torrc?

eduncan911 commented 7 years ago

PR #10 is open for exactly that:

Since the repo owner of here hasn't merged #10 yet (and it's coming up on 6 monts), you may want to just use the fork that has the optional TOR configuration.

docker build https://github.com/djmaze/docker-tor-privoxy-alpine.git#allow-configuration

His updated README has your exact request as an example:

https://github.com/djmaze/docker-tor-privoxy-alpine/tree/allow-configuration

Configuration

It is possible to define configuration options for the Tor daemon using env variables. Just define a variable prefixed with TOR_, as shown in this example:

docker run -d -p 8118:8118 -p 9050:9050 -e TOR_ExitNodes="{de}" rdsubhas/tor-privoxy-alpine

The torrc will now contain:

ExitNodes {de}
random-robbie commented 7 years ago

thank you for this!