Log inSign up

Lightning node VPS: LND or Core Lightning that stays online

A Lightning node with its own pruned bitcoind fits well on S4-8 with 4 vCPU, 8 GB RAM, 160 GB SSD; what matters more than size is keeping it online and keeping channel backups off the server.

What does a Lightning node need from a server?

It needs a reliable Bitcoin backend, a few GB of memory, a public IP and, above all, steady uptime. Lightning software itself is light. LND typically sits in the range of several hundred MB to about 1 GB of RAM once it has a full view of the channel graph, and Core Lightning tends to use less. The weight comes from the bitcoind next to it, from the disk it reads, and from your duty to answer the network when a channel partner acts.

  • Backend: a local bitcoind (pruned or full), or a remote one you trust.
  • Memory: 4 GB is workable with a pruned bitcoind, 8 GB is comfortable.
  • Disk: chainstate plus your prune window plus the Lightning database.
  • Network: inbound port 9735 on the dedicated IPv4 that every instance gets.

Should bitcoind be pruned for Lightning?

For most routing and payment nodes, a pruned bitcoind is fine, and it lets you stay on a small plan. Both LND and Core Lightning can run against a pruned backend; when they need an old block that was pruned, they fetch it from peers. Keep the prune window generous so this rarely happens. Something like prune=50000 (about 50 GB of recent blocks) on S4-8 with 4 vCPU, 8 GB RAM, 160 GB SSD gives a good buffer.

Go unpruned on S16-64 if you also want an index server for your wallets, plan to open many channels quickly, or simply prefer no surprises during a rescan. Whichever you choose, bitcoind must expose ZMQ notifications to the Lightning daemon:

# /etc/bitcoin/bitcoin.conf
server=1
prune=50000
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333
rpcbind=127.0.0.1

Plans for this workload

Smallest first, at the base city price. Order totals are the shortest prepaid term that reaches $40.

PlanWhySizeMonthlyOrder from
A2-4LND with neutrino or a remote bitcoind, very small footprint2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months
S4-8pruned bitcoind plus LND or Core Lightning on one box4 vCPU, 8 GB RAM, 160 GB SSD$24.00/mo$72.00 for 3 months
A4-8same setup on NVMe with more transfer for a busy routing node4 vCPU, 8 GB RAM, 180 GB NVMe$28.80/mo$86.40 for 3 months
S16-64unpruned bitcoind, Lightning and an index server together16 vCPU, 64 GB RAM, 1280 GB SSD$192.00/mo$192.00 for 1 month

How do you set up LND or Core Lightning?

Install the release binaries, point them at the local bitcoind, and run each daemon under its own systemd unit. For LND, a minimal ~/.lnd/lnd.conf looks like:

[Application Options]
alias=my-node
listen=0.0.0.0:9735
externalip=<your IPv4>

[Bitcoin]
bitcoin.mainnet=true
bitcoin.node=bitcoind

[Bitcoind]
bitcoind.rpchost=127.0.0.1
bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333

[wtclient]
wtclient.active=true

Then lncli create to make the wallet and write the seed on paper, not on the server. For Core Lightning, the equivalent is a short config with network=bitcoin, bind-addr=0.0.0.0:9735 and announce-addr set to your IP, started with lightningd --daemon or a systemd unit. Open the port inside the OS with ufw allow 9735/tcp.

Why do channel backups matter more than server backups?

Because restoring an old copy of the channel database can lose you money. Lightning channels are a sequence of states, and broadcasting an outdated one lets your peer claim the whole channel as a penalty. A daily disk backup of the server is a snapshot of a moment, so restoring it after channels have moved on is exactly the dangerous case.

Use the tools built for this instead. LND writes a static channel backup to channel.backup every time a channel opens or closes; copy that file off the server each time it changes, for example with a small inotifywait loop and scp to a machine you control. Core Lightning offers the backup plugin and peer storage options. The optional daily backup add-on ($4.80 a month on S4-8) is still handy for configs, macaroons and scripts, just never as the way to recover live channel state.

How do you keep the node online?

Treat uptime as part of the job: systemd restarts, a watchtower, monitoring, and renewing the term on time. If your node is offline when a peer force-closes with an old state, a watchtower can still answer for you, which is why the sample config turns on the watchtower client. Add a tower with lncli wtclient add <pubkey@host>.

  • Set Restart=on-failure in both units so a crash is a short gap.
  • Check lncli getinfo or lightning-cli getinfo from a cron job and alert yourself if synced_to_chain goes false.
  • Renewal invoices arrive 7 days before the term ends. A paused server means offline channels, so pay early or prepay 12 months at $288.00.

Which city fits a Lightning node?

Place it where the network graph is dense and where you can reach it quickly, which in practice means a well-connected hub. Many routing nodes sit in Western Europe and on the US East Coast, so Amsterdam, Frankfurt or New Jersey put you a short hop from many potential peers. If your customers pay from Asia, Singapore or Tokyo cut the round trip for your own app. Routing does not need low latency the way trading does, but faster HTLC round trips help payments settle smoothly.

All plans in this guide are sold in those cities, except that S16-64 is not offered in Bangalore, Delhi NCR or Honolulu.

How much transfer does Lightning use?

Very little. Gossip, channel updates and payments are small messages, so even a busy routing node rarely moves more than a few dozen GB a month. The bigger number is bitcoind serving blocks to peers. Cap that with maxuploadtarget and the 4 TB on S4-8 will go mostly unused.

Lightning node questions

Can I run Lightning without bitcoind on the same server?

Yes. LND can use neutrino or a remote bitcoind, which lets a node run on A2-4. A local backend is simpler to trust and debug.

Should I enable the daily backup add-on for a Lightning node?

It is useful for configs and scripts, but never restore it to recover channels. Use static channel backups or the Core Lightning backup plugin for that.

Is Tor supported?

You can install Tor inside the OS and run the node as a hidden service, or both clearnet and Tor. We do not limit what software you run within the fair use rules.

Do I keep root access?

Yes, full root on a KVM instance with a dedicated IPv4 and IPv6 address, so port 9735 is yours.

Which coin should I pay with?

Any of the 23 methods. Many node operators settle in Bitcoin; stablecoins on cheaper networks also work and show the fee before you send.