[tor-onions] Retrieving a list of connections to own hidden service
Vasil Dimov
vd at freebsd.org
Thu Sep 24 10:46:13 UTC 2020
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 at dv
%
A complex system that works is invariably found to have
evolved from a simple system that works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1528 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-onions/attachments/20200924/4d23473f/attachment.sig>
More information about the tor-onions
mailing list