Re: [tor-dev] How to query HS hostname from control port

2016-09-09 Thread Jesse V
On 09/09/2016 10:15 PM, dawuud wrote: > right. it shouldn't be necessary at all to modify the torrc... for most > features. You need to modify the torrc in order to enable the ControlPort. https://github.com/Jesse-V/OnioNS-server/tree/json-rpc#setup >> > and an authentication, but it's just one

Re: [tor-dev] How to query HS hostname from control port

2016-09-09 Thread dawuud
> Under the old method I required the user to set up the hidden/onion > service by adding a line to their torrc. That's not necessary if I used > ADD_ONION. In both methods I still need them to enable the control port right. it shouldn't be necessary at all to modify the torrc... for most featur

Re: [tor-dev] How to query HS hostname from control port

2016-09-09 Thread Jesse V
On 09/09/2016 04:23 AM, dawuud wrote: > How does ADD_ONION help with tor vs app data isolation? Why do you > have to modify any torrc at all? Can't you do everything through the > control port? I suppose there are many options not available via control port. > Under the old method I required the

Re: [tor-dev] How to query HS hostname from control port

2016-09-09 Thread dawuud
On Thu, Sep 08, 2016 at 07:16:26PM -0400, Jesse V wrote: > Well, this certainly triggered more conversation than I was expecting. I > was simply wondering if there was such a method call, and apparently > there isn't. That's okay. > > I thought about this and decided to go with Yawning's suggestio

Re: [tor-dev] How to query HS hostname from control port

2016-09-08 Thread Jesse V
Well, this certainly triggered more conversation than I was expecting. I was simply wondering if there was such a method call, and apparently there isn't. That's okay. I thought about this and decided to go with Yawning's suggestion to just use ADD_ONION and then record the returned RSA private ke

Re: [tor-dev] How to query HS hostname from control port

2016-09-08 Thread Yawning Angel
On Thu, 08 Sep 2016 22:44:42 +0400 meejah wrote: > > Anyone who wants to open a ticket here, or has a counter > > argument? :) > > As a *slight* counter-argument to adding on-disk services to the > GETINFO, that would make it harder to distinguish between on-disk > services and ADD_ONION -based

Re: [tor-dev] How to query HS hostname from control port

2016-09-08 Thread meejah
George Kadianakis writes: > I guess a side question here is why those GETINFO commands only return the > ephemeral onion services and not all of them. > > We should probably provide a common interface for getting the hostname of > onion > services, regardless of whether they are ephemeral or per

Re: [tor-dev] How to query HS hostname from control port

2016-09-08 Thread Yawning Angel
On Thu, 08 Sep 2016 13:55:05 +0300 George Kadianakis wrote: > I guess a side question here is why those GETINFO commands only > return the ephemeral onion services and not all of them. Because when I added it, it was part of the ADD_ONION code, and I was too lazy to make it cover the other stuff.

Re: [tor-dev] How to query HS hostname from control port

2016-09-08 Thread George Kadianakis
meejah writes: > [ text/plain ] > Jesse V writes: > >> TL;DR: Please let me know how to fetch the hostname of my hidden service >> from Tor's control port. > > There are two types of onion services: "on disk" ones configured via > torrc/SETCONF and the HiddenServiceDir and related options **or**

Re: [tor-dev] How to query HS hostname from control port

2016-09-05 Thread Yawning Angel
On Mon, 5 Sep 2016 09:01:01 -0400 Jesse V wrote: > On 09/05/2016 12:43 AM, meejah wrote: > > Could you use ADD_ONION instead? Why are you using the on-disk API > > if you don't want to give your thing permission to read those > > directories? > > I'll consider it, but I want the onion service

Re: [tor-dev] How to query HS hostname from control port

2016-09-05 Thread Jesse V
On 09/05/2016 12:43 AM, meejah wrote: > Could you use ADD_ONION instead? Why are you using the on-disk API if > you don't want to give your thing permission to read those directories? I'll consider it, but I want the onion service to be relatively permanent. It would best if the hostname didn't ch

Re: [tor-dev] How to query HS hostname from control port

2016-09-04 Thread meejah
Jesse V writes: > I'm interested in the ones on disk. I wish that "onions/current" would > give me the list of HSs that were set up via torrc, but this doesn't > appear to be the case. I'm basically looking for the raw command. Could you use ADD_ONION instead? Why are you using the on-disk API i

Re: [tor-dev] How to query HS hostname from control port

2016-09-04 Thread Jesse V
On 09/04/2016 09:31 PM, meejah wrote: > There are two types of onion services: "on disk" ones configured via > torrc/SETCONF and the HiddenServiceDir and related options **or** > "ephemeral" onions, created via the recently added ADD_ONION command. > > In the latter case, you can list them with GE

Re: [tor-dev] How to query HS hostname from control port

2016-09-04 Thread meejah
Jesse V writes: > TL;DR: Please let me know how to fetch the hostname of my hidden service > from Tor's control port. There are two types of onion services: "on disk" ones configured via torrc/SETCONF and the HiddenServiceDir and related options **or** "ephemeral" onions, created via the recentl

[tor-dev] How to query HS hostname from control port

2016-09-04 Thread Jesse V
Hi everyone, TL;DR: Please let me know how to fetch the hostname of my hidden service from Tor's control port. Say I have configured torrc to set up a hidden/onion service. By default, it's set up in /var/lib/tor/hidden_service, a directory which isn't world-readable. My software can authenticate