Firewall Configuration
Firewall (UFW/Security Group) setup guide for LumiWave validator nodes
Core Principles
- Allow only required ports, block everything else
- RPC/gRPC/REST can be opened for personal use; restrict access for public services
- Open the P2P port for peer connections
Validator Firewall Rules
| Port | Protocol | Allowed Source | Description |
|---|---|---|---|
| 22 | TCP | Admin IP | SSH |
| 26656 | TCP | 0.0.0.0/0 | P2P (peer connections) |
| 26657 | TCP | 0.0.0.0/0 | RPC |
| 9090 | TCP | 0.0.0.0/0 | gRPC |
| 1317 | TCP | 0.0.0.0/0 | REST API |
Opening RPC/gRPC/REST ports to the public is convenient for querying your node externally, but abuse can impact node performance. If not running a public service, restrict access to your admin IP only or place behind an Nginx reverse proxy.
UFW Configuration Example
# Default policy: deny incoming, allow outgoing
sudo ufw default deny incoming
sudo ufw default allow outgoing
# Allow SSH
sudo ufw allow ssh
# Open P2P port
sudo ufw allow 26656/tcp
# RPC / gRPC / REST
sudo ufw allow 26657/tcp
sudo ufw allow 9090/tcp
sudo ufw allow 1317/tcp
# Enable firewall
sudo ufw enableBinding Address Configuration
Bind RPC/gRPC/REST to 0.0.0.0 to allow external access.
config.toml:
[rpc]
laddr = "tcp://0.0.0.0:26657"app.toml:
[api]
enable = true
address = "tcp://0.0.0.0:1317"
[grpc]
enable = true
address = "0.0.0.0:9090"If external access is not needed, change 0.0.0.0 to 127.0.0.1 to restrict access to localhost only, regardless of firewall settings.
Cloud Environment Notes
In cloud environments (AWS, GCP, etc.), use cloud Security Groups over OS-level firewalls (UFW). Docker containers bypass UFW, so port security for Docker services must be controlled via binding addresses (127.0.0.1).
Related Docs
- Sentry & RPC Node Setup — Firewall reference for multi-node setups