Skip to content

TorBalancer is a load balancer that uses multiple Tor clients and reuses circuits to onion sites.

License

Notifications You must be signed in to change notification settings

ChrisMacNaughton/TorBalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TorBalancer

Balance traffic between multiple Tor clients.

Keeps the circuit and returns connections according to onion address.

HAProxy <--HTTP-->  DeleGate1 <--socks--> Tor1  <-->  Rendezvous Points
                    DeleGate2 <--socks--> Tor2  <-->  Rendezvous Points
                    ...
                    DeleGate9 <--socks--> Tor9  <-->  Rendezvous Points

Stats GUI

Setup TorBalancer

sudo ./install.sh

Start the system

$ bash opentors.sh

Finally, you can test your HAProxy:

$ curl -x localhost:3128 http://msydqstlz2kzerdg.onion/
$ http://localhost:5000/stats

Shutdown

You can kill your Tors, DeleGates and HAProxy by

$ killall haproxy
$ killall tor
$ kill $(ps aux | grep 'delegate' | awk '{print $2}')

Old way to setup with one Polipo proxy

  • Tor + Polipo
  • No load balancing
  • One Tor + proxy instance
$ sudo apt-get install polipo
$ sudo cp polipo_conf /etc/polipo/config
$ sudo service polipo restart

About

TorBalancer is a load balancer that uses multiple Tor clients and reuses circuits to onion sites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages