LumiWave Protocol

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

PortProtocolAllowed SourceDescription
22TCPAdmin IPSSH
26656TCP0.0.0.0/0P2P (peer connections)
26657TCP0.0.0.0/0RPC
9090TCP0.0.0.0/0gRPC
1317TCP0.0.0.0/0REST 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 enable

Binding 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).

On this page