dperson / torproxy

GNU Affero General Public License v3.0
520 stars 146 forks source link

is there a way to tell it to generate new circuit (new IP)? #49

Open airdogvan opened 4 years ago

airdogvan commented 4 years ago

I'm running with the simple docker run -it -p 8118:8118 -p 9050:9050 -d dperson/torproxy command and using it at port 9050 for browser proxy. But I noticed each time I start it it seems to run the same circuit resulting in the same IP (exit node).

Is there a way to tell it to generate new one?

Thanks

ProjectDarkTiger commented 3 years ago

I want to know too!

XSPGMike commented 3 years ago

I have the same question

nguyenhn1299 commented 3 years ago

You can check the Dockerfile that the controlport is 9051. So just map it outside to use.

sudo docker run -it -p 8118:8118 -p 9050:9050 -p 9051:9051 -e PASSWORD=yourpass dperson/torproxy

from stem import Signal
from stem.control import Controller

with Controller.from_port(port=9051) as controller:
    controller.authenticate(password="yourpass")
    controller.signal(Signal.NEWNYM)
des1redState commented 1 year ago

Yes. See comment in thread: https://github.com/dperson/torproxy/issues/80

henriqueutsch commented 1 year ago

Hy guys My question is 9051 port is not open when I run nmap command ` image: dperson/torproxy ports: