Closed JPyke3 closed 2 years ago
Hello! I am just looking for this. Is it possible to access rpcserver behind tor hidden services?
It is possible to use a hidden service with a remote wallet like Zeus LN. But lncli
is currently not able to access an RPC server over tor, that would need a new proxy option.
@guggero @JPyke3 I have added a proxy option to lncli to allow for grpc calls over tor in this PR: https://github.com/lightningnetwork/lnd/pull/6032.
I was able to successfully test these changes by commands like this:
lncli --rpcserver=remoterpchost.onion:10009 --socksproxy=localhost:9050 --tlscertpath=/cert/path/tls.cert --macaroonpath=/macaroon/path/admin.macaroon fwdinghistory --start_time "-1h"
I appreciate your review and comments.
@guggero I messed up PR: https://github.com/lightningnetwork/lnd/pull/6032 when trying to rebase with master and I am not quite sure how to fix it. Should I close this PR and open a new one?
Yeah, looks pretty borked. If you're unable to fix it then yes, please close the broken one and open a new one. There hasn't been any review yet, so not much context will be lost.
@guggero I've created a new PR for the exact same change: https://github.com/lightningnetwork/lnd/pull/6279/files. Would you be able to re-add it to the next milestone?
looks like this was closed by https://github.com/lightningnetwork/lnd/pull/6422
@DanGould thanks for spotting this! I agree that this was fixed by #6422.
Background
I would like to connect to my
lnd
node rpcserver withlncli
over torYour environment
lnd
:lnd version 0.12.0-beta.rc6 commit=v0.12.0-beta.rc6
uname -a
on *Nix):Linux wuerzburg 5.7.9-2-mbp #1 SMP PREEMPT Tue Sep 1 11:29:59 AEST 2020 x86_64 GNU/Linux
btcd
,bitcoind
, or other backend:Neutrino
Tor version 0.4.4.6.
HiddenService in Torrc:
Steps to reproduce
Run the command:
The following Error is returned:
Expected behaviour
It should connect to the RPC server on the other end, and interact with my
lnd
instance