Closed k0nsl closed 8 years ago
Hi! First of all "Thank You" for providing feedback. Some comments that might help you:
# To enable DEBUG mode
debug = true
The Onion Box v1.0rc: WebInterface for Tor Relays
Operating with configuration from 'config\myonionbox.cfg'
[BOX] 2015-12-30 19:53:38 Launching The Onion Box!
[BOX] 2015-12-30 19:53:39 Trying to connect to Tor Relay on 192.168.178.28:9090.
[BOX] 2015-12-30 19:53:39 Connected...
Bottle v0.12.8 server starting up (using BoxCherryPyServer())...
Listening on http://localhost:8080/
Hit Ctrl-C to quit.
[BOX] 2015-12-30 19:53:37 Server Time aligned against Time from 'fritz.box'; adjusted delta: -2.06 seconds
[BOX] 2015-12-30 19:53:37 Operating with CherryPy!
... which might tell you the address of The Box:
Listening on http://localhost:8080/
NB: I'll add a message that prints this address to the log as well.
[BOX] 2015-12-30 19:53:37 Operating with CherryPy!
If you don't receive this, there's probably an issue...
# listen on all interfaces
host = 0.0.0.0
for testing purposes. This should work usually...
Best regards, ralph
I followed your recommendations @ralphwetzel but it didn't help, I'm afraid.
Turning on debug didn't result in any other output than what was shown to me earlier, all it says (after circa 20 minutes of waiting):
root@jim:~/theonionbox/theonionbox# ./theonionbox.py
The Onion Box v1.0rc: WebInterface for Tor Relays
Failed to load configuration from 'theonionbox.cfg'
Operating with configuration from 'config/theonionbox.cfg'
[BOX] 2015-12-30 22:30:00 Launching The Onion Box!
[BOX] 2015-12-30 22:30:00 Trying to connect to Tor Relay on 127.0.0.1:9090.
[BOX] 2015-12-30 22:30:00 Connected...
Apart from following your recommendations I tried to set up a reverse proxy with nginx in the following format, all very simple:
server {
listen redacted:80;
server_name redacted.domain.tld;
access_log /dev/null;
error_log /dev/null crit;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
That didn't yield any positive results, either.
I will dig around more to see if I can get it to work.
Best wishes, -k0nsl
Oh, wait a second. The "problem" appears to be that it only listens on IPv6 and my ISP here at home doesn't support it and I've got no tunnel at the moment. But it only listens on IPv6:
tcp6 0 0 ::1:8080 :::* LISTEN
So now I have narrowed it down, I think. Is it possible to have it listen only on IPv4?
Okay, I got it working by setting host to 0.0.0.0
in theonionbox.cfg
and using my nginx reverse proxy configuration posted above; I can now login and watch all the pertinent data.
Another thing, upon launching theonionbox.py
I had to push Q on my keyboard one time and it started the CherryPy server. Weird.
Here's a screencast of it running: https://i.knsl.org/theonionbox-test01_k0nsl.webm
Great stuff. Thanks again!
PS: Are you on IRC, on Freenode or elsewhere?
Best wishes, -k0nsl
Great to read that you made it running. Do you have any special proposal for changes so that things work more fluently next time? Greetings!
@ralphwetzel,
I will try to come up with suggestions later on. However, despite my initial "issues" (probably self-inflicted) the installation was painless. A smooth experience.
All in all I'm very pleased with the current procedure.
I may consider making another theme for it, based on “Semantic UI”. But only if time allows. I'm unsure if that would be a waste of time or not, seeing as it already looks fine to me.
@k0nsl , Freenode; same nick. Greetings & thanks for the cast! ralph
Hi.
Thanks for creating this interesting project. I got to know it through the tor-relays list.
At any rate, I got it installed successfully on one of the boxes and it appears to interact with the tor service, as per:
My
theonionbox.cfg
looks like this:host
is set to my public facing IP address. When I try to access the WebUI it only saysERR_CONNECTION_REFUSED
in Chromium. CherryPy is installed. It doesn't matter if I use CherryPy or the default, same problem.I am running Debian 7 (wheezy). The firewall is set to allow this and any other relevant ports.
Did I overlook something completely obvious or what could the issue be? For now it's simply a guessing game for me :/
Best wishes, -k0nsl