ralphwetzel / theonionbox

Dashboard to monitor Tor node operations
MIT License
122 stars 17 forks source link

feature request: add support for ControlSocket #13

Open nusenu opened 7 years ago

nusenu commented 7 years ago

I'm filing this here as a github issue so I get notifications if there are any updates on this. I mentioned this previously on the tor-relays ML [1].

Rationale: In ansible-relayor [2] I support ControlSocket only (no controlPort) for simplicity (no TCP port required, no password handling, just filesystem permissions).

It would be great if theonionbox would support ControlSocket to connect to tor.

[1] https://lists.torproject.org/pipermail/tor-relays/2016-September/010409.html [2] https://github.com/nusenu/ansible-relayor

diffusae commented 7 years ago

Yes, I also would appreciate this. ControlSockets are better to handle. Thanks in advance

ralphwetzel commented 7 years ago

Hi! Beginning with the v3.2 releases the Box has the capability to connect to a relay via a Control Socket. You may configure this in the config file. Be aware that this still requires a password for login. I'll simplify this with one of the next releases. Best regards, Ralph

diffusae commented 7 years ago

Hi!

Sorry, didn't see the config file or the variable is missing in the default file. I tried it first with tor_control_port, but that didn't work. Thanks a lot for your work. I looks great and the webserver also have a low CPU usage. Better than everything I've used before.

Regards,

diffusae commented 7 years ago

How do I configure multiple instances in this config file?


[TorRelays]
#Define the number of relays to monitor
#Defaults to 1 if not defined!
tor_count = 2

Thanks a lot!

ralphwetzel commented 7 years ago

This is - as stated in the config file - not yet implemented:

# Not yet implemented:

[TorRelays]
# Define the number of relays to monitor
# Defaults to 1 if not defined!
# tor_count = 2