Hello,

I am wondering if it is possible to retrieve, via tor-control, the list
of connections the tor daemon has opened to a hidden service it manages.

For example, an application connects to tor-control and issues:

  ADD_ONION NEW:BEST Port=8333,127.0.0.1:8333

Which creates a hidden service addrwhatever.onion. Later somebody
connects to addrwhatever.onion:8333 and the tor daemon opens a TCP
connection like 127.0.0.1:46153 -> 127.0.0.1:8333. Next, some other
application (not the tor daemon) connects directly to 127.0.0.1:8333
and that is 127.0.0.1:52490 -> 127.0.0.1:8333.

What if the application running at 127.0.0.1:8333 wants to distinguish
incoming tor connections from the rest? From its point of view the
connections from the example above are just TCP connections coming from
127.0.0.1:46153 and 127.0.0.1:52490.

  GETINFO stream-status

comes close, but it only prints addrwhatever.onion:8333 which is not
sufficient.

Thanks!

-- 
Vasil Dimov
gro.DSBeerF@dv
%
A complex system that works is invariably found to have
evolved from a simple system that works.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
tor-onions mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-onions

Reply via email to