Skip to content

Update lightning-network-error.md - #62

Merged
mynode-dev merged 2 commits into
mynodebtc:masterfrom
tlindi:patch-1
Apr 9, 2025
Merged

Update lightning-network-error.md#62
mynode-dev merged 2 commits into
mynodebtc:masterfrom
tlindi:patch-1

Conversation

@tlindi

@tlindi tlindi commented Mar 28, 2025

Copy link
Copy Markdown
Contributor

add information of nat=false when UPnP routers don't work.

Description

nat=false is many times coming up on Telegram channels. It is also only option if one wants to run clearnet node and route UPnP is not co-operative / compatible.

Here's one example: mynodebtc/mynode#840

Checklist

  • mentioned related issue

add information of nat=false when UPnP routers don't work.
@mynode-dev

Copy link
Copy Markdown
Collaborator

I had considered adding something like this, but I did not want to encourage custom configs since it leads to more issues. Once a config is custom, automatic updates and other settings stop working because the custom config overrides them.

@tlindi

tlindi commented Mar 29, 2025

Copy link
Copy Markdown
Contributor Author

Correct.

Maybe then just add UPnP switches under both bitcoind and Lightning configuration or to Network Settings as a Common function?

I'd love them too cause My current router is not compatible anymore wihh UPnP of those.

@mynode-dev

Copy link
Copy Markdown
Collaborator

If you set nat=false do you also need to specify your external IP? I thought that would also require a config being updated frequently and didn't want to support it outside of the already "expert mode" config where you can fully customize it. If it doesn't require the external ip though, I could add a toggle.

@tlindi

tlindi commented Apr 1, 2025

Copy link
Copy Markdown
Contributor Author

If you set nat=false do you also need to specify your external IP?

Yes, or eg DynDNS DNS name.

I thought that would also require a config being updated frequently

wouldn't. If one uses DDNS inside of router/modem.

and didn't want to support it outside of the already "expert mode"
config where you can fully customize it.

--and in addition to extra_conf extraconf lines

[Application Options]
tlsextradomain=yourfancydnsname.ddns.net
externalhosts=yourfancydnsname.ddns.net:9735

If it doesn't require the external ip though, I could add a toggle.

So unfor it does need :-/

To use any apps on clearnet IRL one needs to

  • generate nginx conf HTTPS for public DNS name ,
  • get non-selfgenerated SSL Certificate (certbot),
  • open clearnet http to certbot, but prevent it to expose MyNode http pages and
  • and few other thinks too :-/

I tried Caddy for those, but it cant be stopped to listen 80. So it breaks every mynode* related site :-/

too hard to get eg BTCPay or LNbits running on clearnet, for many...

@tlindi

tlindi commented Apr 1, 2025

Copy link
Copy Markdown
Contributor Author

Once a config is custom, automatic updates and other settings stop working because the custom config overrides them.

To prevent that there is fancy Extra Config box, which I'd recommend to use :-)

@mynode-dev

Copy link
Copy Markdown
Collaborator

Yeah, that's similar to what I thought. I didn't want to add a toggle that would break most people when they don't understand all the other options necessary to configure.

Can you add nat=false to the additional config as well? It might override the original setting, but I have not tried it.

@tlindi

tlindi commented Apr 2, 2025 via email

Copy link
Copy Markdown
Contributor Author

@mynode-dev

Copy link
Copy Markdown
Collaborator

OK, awesome. Would you mind adding info about the other config necessary? I'd be good with having a simple Tor-based solution and an Advanced IP solution using the extra config section.

@tlindi

tlindi commented Apr 3, 2025

Copy link
Copy Markdown
Contributor Author

If you set nat=false do you also need to specify your external IP?

Thread_functions.py seems to already get public IP. Maybe that could be proposed as configuration value to lnd.conf nat=false guys ,-) or it could update conf and, yes boot always when IP changes. But it would be automatic... I keep on dreaming ;-)

@tlindi

tlindi commented Apr 3, 2025

Copy link
Copy Markdown
Contributor Author

OK, awesome. Would you mind adding info about the other config necessary?

I will.

I'd be good with having a simple Tor-based solution

Unfor I suk on tor thinks

and an Advanced IP solution using the extra config section.

this clearnet I can present.

@mynode-dev

Copy link
Copy Markdown
Collaborator

Yeah, I could, but I really don't want to change LND config based on the current IP. The last found IP can either be out of date or cause failures if the IP can't be found properly. There was a recent issue where one of the IP lookup locations was failing.

I wasn't clear - I just meant the Tor solution already described could be called "simple" since it would not require additional config. The IP solution with addition config would have "advanced" in the title just to encourage users to go with the current Tor based solution while also still explaining to more technical users that an IP-based solution exists.

Added Advance User Resolution with all required steps needed.
@tlindi

tlindi commented Apr 5, 2025

Copy link
Copy Markdown
Contributor Author

Yeah, I could, but I really don't want to change LND config based on the current IP. The last found IP can either be out of date or cause failures if the IP can't be found properly. There was a recent issue where one of the IP lookup locations was failing.

I wasn't clear - I just meant the Tor solution already described could be called "simple" since it would not require additional config. The IP solution with addition config would have "advanced" in the title just to encourage users to go with the current Tor based solution while also still explaining to more technical users that an IP-based solution exists.

There you go. Is it Advanced enough to scare everyone to even try ;-) ?

@mynode-dev
mynode-dev merged commit ad5748c into mynodebtc:master Apr 9, 2025
@tlindi
tlindi deleted the patch-1 branch April 9, 2025 01:14
@tlindi

tlindi commented Apr 9, 2025

Copy link
Copy Markdown
Contributor Author

Thank you appreciating my docs.

And believe me - from all the bundle nodes I have tried, this is not the most easy way to get onto clearnet, but only one I have found!

@tlindi

tlindi commented Apr 17, 2025

Copy link
Copy Markdown
Contributor Author

Ackzyally... There's https_public_services nginx conf and ports 600x catching of apps.

I tested to clone it to catch Port 6000 for all public hostnames needed. And added certbot. And I get with two router Port forwardings any App to be available from clearnet via https.

Would there be a chance to get PR adding certbot and modified nginx ever merged to main?

If this same advanced (or Additional "Even More Advanced") document would be created to explain usage?

@tehelsper ?

@mynode-dev

Copy link
Copy Markdown
Collaborator

Maybe partially. I woudln't mind if the apps were simple to maintain and installed to be available for advanced users. I don't think I would make it something available via the UI to just prevent less experienced users from breaking things.

The public apps idea is probably not going to happen. It was an idea to make public access to things like lnbits or btcpay simple through a subdomain like user.lnbits.mynodebtc.com. It somewhat worked, but all traffic was getting proxied and was a complex setup. I should remove those nginx files or at least just comment them out.

@tlindi

tlindi commented Apr 19, 2025

Copy link
Copy Markdown
Contributor Author

I should remove those nginx files or at least just comment them out.

Yes. Even I couldn't figure out how they were supposed to work. Just leave port 6000 for # Advanced Users Clearnet https in and I'd be quite happy.

As I have time I can PR something really minimal that could help advanced users, and not enable others too easy to wreck their node.

Anyhow whole certbot, nginx & ufw area is for users with good or excellent networking skills.

Could we keep this issue open, so it is easier for me to return to topic in the future?

mynode-dev added a commit that referenced this pull request Aug 24, 2026
Update lightning-network-error.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants