Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean Up Case #5 in Tor Documentation
Case 5 in the Tor documentation currently states that if you use `--bind-addr=autotor:127.0.0.1:9051`, you can get your onion address by running `lightning-cli getinfo`. I have not found that to be the case; with that flag no onion address will be generated. On the other hand, if `--addr=autotor:127.0.0.1:9051` is used instead, an onion address is generated and `lightning-cli getinfo` behaves as the docs say.
- Loading branch information
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--bind-address
SHOULD work with autotor.Please take a look at #2183 (solved into #2192).
If nothing has changed, it is not an issue in the documentation, it is an issue to be opened regarding the code (or maybe reopening #2183?). @Saibato @cdecker
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gabridome : good catch +1: That PR is 🤦♀️ I am speechless
NACK #2514
The wording should have been changed to "is hidden and not announced and no longer with simple getinfo visible" but to suggest --addr= makes it less track able, when the opposite is the case is suboptimal
Changes regarding Tor or Tor Doc should from now on, if not critical be open for more than one Day before merged. Shame on me that I don't read Docs.
Hidden temp onion's are created with --bind-addr=autotor:127.0.0.1:9051 you can verify by
`xxd -l 32 -ps -c 32 /var/run/tor/control.authcookie
nc 127.0.0.1 9051
AUTHENTICATE [here the string that xxd from authcookie returned]
getinfo onions/detached`
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So to know address it is necessary to "AUTHENTICATE" now?
Also: there are a few things I think it is necessary to change about the doc:
In several parts of the document I have used tor or TOR. The name should be
Tor
(this probably includes the name of the file...).Also the table I made regarding the various cases does not show up well with the new publishing procedure @cdecker has set up.
I'm available to work on it if you are not already doing so.
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still not sure, if I can do anything more in this project in regards to Tor or privacy
Maybe I fork, please DM :-)
I prefer to work in the spirit of Hobbit from whom I steal most of my code :-)
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try to push a patch in my repro under tag tor-autotor that list with getinfo on flag --show-hidden also unannounced addresses
And I also have to check what works and not in master.
My own LN forked long ago and is no longer compatible, but from there a more privacy orientated p-LN is possible to create.
I.e. the direct Pay without prior invoice I just implemented by tunnel over ping
But that is something that will never get any approve by regulators so it's just private useable
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. that's my fingerprint in any case for further communications.
DC47A9B4CF4163736EBBE14EA48FBF051C43F817
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autism + paranoid = bitcoin + ln
🦄
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here a draft 25a2a84 for a docu change in regards to --addr=autotor
if you want to make a PR just cherry-pick what you find useful.
I always CC-0 and just want things to get done.
And if you do the PR it will be I am sure far better and more readable.
tag tor-autotor da5e582
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Saibato,
When you write:"you ask the Tor service api and do a getinfo onions/detached to list your temp onions" that means:
lightning-cli getinfo onions/detached
? Is it a new option?02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange but fact the Tor service api has also a getinfo but you can ask it for special values, something that might be useful for LN also.
02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Found the documentation API. I will put a link if someone needs it.
It seems prohibitive to find your own .onion address in this set up but I guess this could serve well whoever wants to
connect
to a node and doesn't need to accept connections.02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought, if your purpose is to be able to connect to other nodes but not to be reachable by other nodes' connections, the way you do it is to set the socks5 proxy
--proxy=127.0.0.1:9050
.I'm afraid there's not a practical use case for
--bind-addr=autotor:127.0.0.1:9150
unless there is an easy way for the owner of the node to selectively disclose his .onion address and using the API or the SUPERVERBOSE log is prohibitive.One easy way to selectively disclose your .onion address would be if it appeared in your
lightning-cli getinfo
but it wasn't announced on the network. in this way you could pass it off band to whoever you choose.02ddeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I think about that ..
[WIP] Show the Tor onion address 3b18cf0
Fully functional {WIP] to show the .onion address with flag --enable-getinfo-all=true ( default false )