Hosting multiple hidden services on a Debian server running Tor 0.2.6.10 (no special setup or config options). I see thousands of such lines in the log files:
All hidden services are working and accessible, didn't reload/restart Tor. What is concerning is that there are so so many of these messages in a very short time. #9635 (moved) mentioned this as well, but along with other error messages which were indicating a wrong nTor key. Here we only have a single line, heavily repeated at short time intervals.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
Trac: Description: Hosting multiple hidden services on a Debian server running Tor 0.2.6.10 (no special setup or config options). I see thousands of such lines in the log files:
All hidden services are working and accessible, didn't reload/restart Tor. What is concerning is that there are so so many of these messages in a very short time.
to
Hosting multiple hidden services on a Debian server running Tor 0.2.6.10 (no special setup or config options). I see thousands of such lines in the log files:
All hidden services are working and accessible, didn't reload/restart Tor. What is concerning is that there are so so many of these messages in a very short time. #9635 (moved) mentioned this as well, but along with other error messages which were indicating a wrong nTor key. Here we only have a single line, heavily repeated at short time intervals.
After ~10 hours the log file grows fast with so so many lines:
Aug 02 08:53:58.000 [warn] connection_edge_process_relay_cell (at origin) failed.
Decided to look at it closer and changed log level to info. Left Tor to log info level for about ~7 minutes, and I got a log file with 3966 lines, out of which 3364 are the same, with an average of about 25 with the exact same timestamp:
Aug 02 08:39:24.000 [info] cell_ewma_set_scale_factor(): Enabled cell_ewma algorithm because of value in CircuitPriorityHalflifeMsec in consensus; scale factor is 0.793701 per 10 secondsAug 02 08:39:24.000 [info] options_act(): Worker-related options changed. Rotating workers.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:39:24.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.
Here are the log messages surrounding the [warn] message:
Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_exit_begin_conn(): begin is for rendezvous. configuring stream.Aug 02 08:40:03.000 [info] rend_service_set_connection_addr_port(): No virtual port mapping exists for port 8333 on service dioq2yg3l5ptgpgeAug 02 08:40:03.000 [info] connection_exit_begin_conn(): Didn't find rendezvous service (port 8333)Aug 02 08:40:03.000 [warn] connection_edge_process_relay_cell (at origin) failed.Aug 02 08:40:03.000 [info] command_process_relay_cell(): circuit_receive_relay_cell (backward) failed. Closing.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_edge_package_raw_inbuf(): called with package_window 0. Skipping.Aug 02 08:40:03.000 [info] connection_exit_begin_conn(): begin is for rendezvous. configuring stream.
The same for the other messages - before each one it appears that a client tries to connect to an existent hidden service but at a virtual port which is not configured for that hidden service.
appears in Tor's log file every time I try to connect to an existent hidden service at a different virtual port than the one(s) configured via HiddenServicePort. Does this bother Tor or puts load on it in any way? Seams like a trivial attack for any script kiddie.
Moving these tickets into 0.2.8. Not expecting to take patches for any into 0.2.7 at this late date. As usual, please say something if you disagree! :)
This line occurs every time a client tries to visit a port on your onion service which is not configured. For example, if you put your onion service on virtual port 80, and somebody tries to visit virtual port 22.
So as onion service crawlers get more popular and more aggressive, we'll be seeing more of these lines.
I think there's another ticket for this issue open somewhere too.
Yes, this is true and confirmed (comment 3 on this ticket). What I think we should do is discover why this log message is printed when the described event occurs and see if it causes any load over the Tor process. Requests on non-configured virtual ports should be discarded in a way that spends the lowest amount of resources possible.
What I think we should do is discover why this log message is printed when the described event occurs
It's because some function deep inside Tor returns -1 for failure, and the calling function thinks -1 means it needs to log a warning. It's a great opportunity for refactoring. (In fact, I hear Chelsea enjoys refactoring, so I am cc'ing her on this ticket. :)
and see if it causes any load over the Tor process. Requests on non-configured virtual ports should be discarded in a way that spends the lowest amount of resources possible.
I think there isn't any extra load, except for the warning.