[c-lightning] possible to run lightning behind NAT

ZmnSCPxj ZmnSCPxj at protonmail.com
Mon Apr 2 17:38:55 AEST 2018

Good morning Yubin,

C-lightning attempts to find a way to get the port forwarded behind NAT, but this does not always work.  Making this work may vary depending on how your local network is set up, and also, how your ISP provides internet access; in some third-world countries, ISPs charge extra for the privilege of getting a public IP address, and, might deliberately, specifically not support IPv6 which should have made it possible for everybody to get a public IP address cheaply.

We have a pull request pending review that adds support for contacting and being a TOR onion service.  TOR onion services can automatically forward from behind NAT (i.e. TOR has NAT punch-through due to how it is constructed), at the price of increased latency for communications (i.e. slower hops to/from you).  You could try helping review the pull request https://github.com/ElementsProject/lightning/pull/1175 if running a TOR onion service is feasible for you.

(NAT punch-through requires a turn-around server outside the NAT; TOR relay nodes automatically serve as turn-around servers for TOR onion services, letting TOR punch through NATs. Duplicating that service is duplicating that work, especially since the Lightning protocol itself deliberately supports TOR addresses to provide privacy and NAT punch-through, so we might as well wait for TOR onion service support to get into c-lightning)


​Sent with ProtonMail Secure Email.​

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On April 2, 2018 11:50 AM, Yubin Ruan <ablacktshirt at gmail.com> wrote:

> I only have a net address of, i.e., behind a NAT. And when
> running lightning on testnet I see lots of "Unable to estimate ECONOMICAL/4
> fee". How to deal with these errror?
> Yubin
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> c-lightning mailing list
> c-lightning at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/c-lightning

More information about the c-lightning mailing list