mattes / rotating-proxy

Rotating TOR proxy with Docker
The Unlicense
1.13k stars 256 forks source link

Exit Nodes #25

Open random-robbie opened 6 years ago

random-robbie commented 6 years ago

Hey dude,

I know normally you need to edit torrc for changing exit nodes to set countrys.

how would you do it on this?

would i fork it and then add a new torrc file or would i change something in the ruby file to choose the country exit nodes?

bagaskarawg commented 5 years ago

Hi there,

Bringing up an old issue I guess :)

In my case, I just need to "SSH" to the container using the following steps:

  1. docker ps to list the containers
  2. docker exec -ti {container-id} /bin/bash "SSH" to the container where {container-id} is your rotating-proxy container
  3. nano /etc/tor/torrc and add the ExitNodes {US} (for example) or using this command echo ExitNodes "{us}" | sudo tee -a /etc/tor/torrc (copied from https://tor.stackexchange.com/questions/13134/how-do-i-restrict-exit-to-one-country-while-running-under-tails-2-6)
  4. service tor restart restart tor service inside the container
  5. docker restart {container-id} restart the container

I think it's a workaround and maybe someone else has a better solution to this.

landaida commented 3 years ago

this doesn't work for me image image