Lightning Network node on VPS: Umbrel / RaspiBlitz / clightning

calendar_month May 08, 2026 schedule 8 min read visibility 21 views
person
Valebyte Team
Lightning Network node on VPS: Umbrel / RaspiBlitz / clightning
To run a stable lightning node on a VPS, you need a server with a Linux operating system (Ubuntu 22.04 LTS), at least 4 GB of RAM, 2 CPU cores, and an SSD with a capacity of 1 TB or more to store a full copy of the Bitcoin blockchain. The rental cost for a suitable instance ranges from $15 to $45 per month, depending on the chosen synchronization method and the type of disk subsystem.

Technical Requirements for a Lightning Node VPS in 2024-2025

Deploying a Layer 2 node on top of the Bitcoin protocol requires significant disk subsystem resources. Unlike simple wallets, a **lightning node vps** must maintain a constant connection to the network, store the current state of channels, and have access to a full or pruned copy of the blockchain.

Server Hardware Specifications

The main bottleneck is the read and write speed (IOPS). Blockchain synchronization (Initial Block Download — IBD) on a standard HDD can take weeks, whereas on NVMe drives, the process completes in 20-40 hours. For lag-free payment processing, the following parameters are recommended:
  • CPU: Minimum 2 cores (2.0 GHz+). The Lightning Network actively uses cryptographic calculations when verifying signatures in channels.
  • RAM: 4 GB is the absolute minimum for Umbrel or Core Lightning. If you plan to run additional services (BTCPay Server, Mempool Explorer), it is better to aim for 8 GB.
  • Disk: SSD or NVMe. A 1 TB capacity will allow you to store a Bitcoin full node (about 650 GB at the end of 2024) with a buffer for 2-3 years. Using a Bitcoin full node on VPS in pruning mode allows you to reduce requirements to 100 GB, but this will limit the functionality of some applications.
  • Network: Unlimited traffic from 100 Mbps. The node actively exchanges gossip messages about the network graph state, generating 300-700 GB of traffic per month.

Comparison of VPS Configurations for Different LN Tasks

Node Type CPU (Cores) RAM (GB) Storage (SSD) Approx. Price ($/mo)
Pruned Node (Minimum) 2 4 160 GB 15 - 20
Routing Node (Standard) 4 8 1 TB 35 - 50
Business (BTCPay + Apps) 4 16 2 TB 60 - 90

Choosing the Software Stack: Umbrel Server vs. Core Lightning and RaspiBlitz

When you create **your own lightning node**, the choice of software determines management convenience and resource consumption. There are three main approaches to installation on a remote server.

Umbrel: Ideal Interface and Docker Architecture

**Umbrel server** is an operating system (or a set of Docker containers) that turns your VPS into a personal server with a graphical interface. The main advantage is the App Store, where tools for channel management, wallets, and analytics can be installed with one click. Umbrel uses LND (Lightning Network Daemon) as its core.

Core Lightning (clightning): Lightweight and Performance

Core Lightning (by Blockstream) is written in C and focused on maximum performance with low resource consumption. It is the choice for developers and those who want to build complex custom solutions. It consumes 3-4 times less RAM than LND but requires CLI (command line) skills.

RaspiBlitz and Manual Installation

RaspiBlitz was originally created for Raspberry Pi, but its scripts are well-adapted for Debian/Ubuntu. It is the "golden mean" between Umbrel's convenience and Core Lightning's flexibility. If you need maximum privacy and control, manual compilation of Bitcoin Core and LND from source is the only way to eliminate unnecessary dependencies. When working with anonymous networks, it is useful to study the experience of setting up a Monero node on VPS, as the traffic isolation principles are similar.

Looking for a reliable server for your projects?

VPS from $10/mo and dedicated servers from $9/mo with NVMe, DDoS protection, and 24/7 support.

View offers →

Installing Umbrel on VPS: A Step-by-Step Guide

To deploy a **bitcoin lightning vps** based on Umbrel, you will need a clean Ubuntu 22.04 OS. Umbrel will automatically install Docker, Docker Compose, and all necessary dependencies.

System Preparation and Installation

Connect to your server via SSH and perform a package update:
sudo apt update && sudo apt upgrade -y
sudo apt install curl -y
Run the Umbrel automatic installation script:
curl -L https://umbrel.sh | bash
The process will take 5-10 minutes. Once completed, the system will provide a URL to access the web interface (usually your VPS IP address). Immediately after logging in, you must generate a 24-word seed phrase. **Be sure to write it down on paper**, as it is the only way to recover your bitcoins in case of server failure.

External Disk Configuration

If your VPS uses a separate block storage device for blockchain data, ensure it is mounted to the Umbrel directory. It is recommended to mount the disk by UUID in `/etc/fstab` to avoid issues after a reboot.

Liquidity Management and LN Channels

After blockchain synchronization (which can take up to two days), your node will be ready for operation, but it won't be able to send or receive payments without open channels. The concept of **ln channels** (liquidity channels) is key in the Lightning Network.

Inbound and Outbound Liquidity

To send a payment, you need outbound liquidity (you deposit BTC into a channel). To receive a payment, you need inbound liquidity (someone else must open a channel to you, or you must spend your funds through an existing channel).
  • Outbound Liquidity: Easy to obtain by simply opening a channel to a large node (e.g., ACINQ or Kraken).
  • Inbound Liquidity: More difficult. You can use services like Lightning Terminal (Loop), buy channels on Amboss, or use "Liquidity Ads."
  • Balancing: Use tools like Rebalance-LND or ThunderHub functionality to move funds between channels to maintain their health.

Setting Routing Fees

If you plan to earn from routing other people's payments, setting fees becomes critical. The fee consists of a base fee and a proportional fee (fee rate in ppm — parts per million). For beginners, it is recommended to set low values (base: 1 sat, rate: 100-200 ppm) to attract traffic and test channel stability.

Using Tor for Node Privacy

By default, Umbrel and most other builds run the **lightning node vps** through the Tor network. This hides the server's real IP address, protecting it from DDoS attacks and allowing the node to work behind NAT.

Advantages and Disadvantages of Tor

Tor provides a high level of privacy: no one will know the physical location of your server. However, Tor has a significant downside — latency. In the Lightning Network, fast message exchange is important for successful routing. For businesses, a "Hybrid Mode" is often configured:
  1. Bitcoin Core runs through Tor for transaction privacy.
  2. Lightning Node runs through Clearnet (public IP) for speed, but using SSL/TLS.
If you are developing applications that interact with the blockchain, you might need your own RPC endpoint for fast data transmission without Tor delays.

Integrating BTCPay Server for Business Payments

For commercial use, a **self-hosted lightning node** is most often linked with BTCPay Server. This is a powerful open-source processor that replaces BitPay and other centralized services.

Umbrel + BTCPay Integration

In the Umbrel App Store, BTCPay Server is installed with one click. After installation, you get:
  • Invoices with automatic exchange rate conversion.
  • Plugins for WooCommerce, Shopify, and PrestaShop.
  • Crowdfunding pages and Point of Sale (PoS) for tips.
Using your own server eliminates intermediary fees (0% instead of 1-2% at payment gateways) and ensures instant settlement. To manage customer communications alongside payments, you can deploy a Self-hosted Chatwoot, creating a fully independent business ecosystem.

Security and Backups for a Lightning Node

Unlike a regular Bitcoin wallet where a seed phrase is enough, for an LN node, it is not sufficient. The state of channels changes with every payment. If you restore a node from an old copy, your counterparties might suspect a fraud attempt and close the channels, taking all the funds (penalty transaction).

Static Channel Backups (SCB)

LND automatically creates a `channel.backup` file. If the server is lost, this file, along with the 24 words, allows you to initiate a "Force Close" of all open channels and return the funds to your main on-chain wallet. In Umbrel, this file is automatically encrypted and can be uploaded to the cloud or downloaded locally.

Firewall Configuration

To protect your **lightning node vps**, you must restrict access to management ports:
sudo ufw default deny incoming
sudo ufw allow 22/tcp # SSH
sudo ufw allow 9735/tcp # Lightning Protocol
sudo ufw allow 80,443/tcp # Web UI (if not via Tor)
sudo ufw enable
It is recommended to use SSH keys instead of passwords and change the standard SSH port to reduce the load from brute-force bots.

Server Monitoring and Maintenance

Operating a node requires periodic monitoring. Key parameters to watch:
  • Free Disk Space: If the blockchain fills 100% of the disk, the LND database may become corrupted.
  • Uptime: If the node is offline for more than 24-48 hours, channels may be force-closed by partners.
  • Channel Health: Checking for "stuck" (HTLC) payments that might block liquidity.
To visualize this data in Umbrel, applications like Ride The Lightning (RTL) or ThunderHub are used. They allow you to see your channel topology graphically, track fee earnings, and perform circular rebalancing of funds.

Conclusions

To create a reliable and high-performance Lightning Network node on a VPS, the optimal choice is a server with 8 GB of RAM and a 1 TB NVMe drive, running on Umbrel for maximum convenience or Core Lightning for high loads. This configuration will ensure uninterrupted payment acceptance through BTCPay Server and allow you to participate in network transaction routing while maintaining full control over private keys and liquidity.

Ready to choose a server?

VPS and dedicated servers in 72+ countries with instant activation and full root access.

Start Now →

Share this post:

support_agent
Valebyte Support
Usually replies within minutes
Hi there!
Send us a message and we'll reply as soon as possible.