-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to lightning node through TOR #2
Comments
hey! thanks for bringing this up! Right now I think this is not possible out of the box (or without additional proxies.) |
Hi! I'd like to run lnme in a github hosted webpage, and connect to a remote umbrel node. I can definitely help with testing. |
Running it as a static page does sadly not work. The invoice needs to be created that's why this is a small Golang app that does this for you. You can then embed it in any page, but the server part needs to run. - potentially that can run on the same machine as your LND node. |
My LND node runs on a raspberry pi, and I can run javascript on a GitHub static page. Would it work if the app to create the invoice runs in that same server and then a piece of javascript is embedded on the static webpage? |
yes, that's the idea. lnme runs on the same sever as your LND and then you can use JS from a static page to get the invoice. you only need to make sure that the JS can access lnme on your raspberry pi server then. |
Ok, I understand now. Thanks! Looks like an easy setup. It would be great if lnme could be accessed through a TOR hidden service to avoid exposing the IP address of the bitcoin full and lightning node. |
If you run lnme on the same node it connects through localhost. but then the lnme must be accessible. |
I have a branch that supports connecting through tor. You can test it here: https://github.com/bumi/lnme/tree/tor-connections |
Very interesting project. Straight to the point. I was trying to use BTCPAY server, but it seems too complex for what I need. I will try to make it work on TOR and give you feedback anyway. Thanks!! |
It didn't work so far. I have all tls.* set. Tor is running ok. Hidden Services are set on 10009. It returns the following error message: 2021/08/24 17:23:18 Error creating invoice: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "raspberrypi")" |
thanks for your feedback! sadly I do not have much experience with TOR so far, so help is greatly appreciated. your error message does not sound that bad to me...it seems a connection could be made but the LND cert was invalid? |
It was my bad. The current version of lnme I am working on was picking old tls files from other directory path. I could not notice that until today. It is now working like a charm! Thanks! By the way, congratulations for your work. Lnme is very good and I am loving it! I have no experience working as github collaborator. I have added interesting features to lnme. If you are interested to know it, please, let me know. |
ok, that's great to hear! thanks! You've worked with the tor branch? (https://github.com/bumi/lnme/tree/tor-connections)? yes, please! any interesting feature would be helpful. feel free to open issues (and PRs if you have some code... I am happy to help if you have questions) |
I'm trying to set up my lnme and I have it working fine using clearnet, but when I change my lnd-address in my config to my tor address I get the following message: I'm testing by paying myself through Thunderhub. Here are the errors that spits out if they help at all:
When I start the application (lnme) I see it connecting to my .onion followed by the cli splash and |
@theLockesmith the macaroon and the certificate are correct? the error "authentication handshake failed" sounds like the authentication issue? |
@bumi that was my first thought. I've tried both the file path and the hex with both clearnet and tor addresses, and both path and hex work for clearnet. Unless I need to pass them differently for tor, they're both correct afaict. |
ok. and the onion address is correct with port an everything? |
I changed it back to the tor address to test and the error has changed: |
Is there any way to connect lnme to a lightning node like Umbrel (https://github.com/getumbrel/umbrel) through an REDACTED.onion:8333 address?
The text was updated successfully, but these errors were encountered: