Relay for a home host
Lend a public IPv4 to a host behind a home router.
A host behind a router has no public address for the control plane and SSH to reach. A relay fixes that: a small public Linux VM (the smallest instance anywhere is enough, 1 vCPU and 1 GB) lends one of its extra IPv4 addresses to each host. The host dials a WireGuard tunnel to the relay; traffic for its public IP is forwarded down the tunnel and answered through it. The relay runs no boxes and knows nothing about the control plane.
On the relay VM
curl -fsSL https://kvbox.cloud/install-relay.sh | bash
kvbox-relay add home1 --ip <extra-public-ip>The installer sets up WireGuard, IP forwarding and the kvbox-relay command. add creates a peer for the host and prints one line to paste on the host.
kvbox-relay ls
kvbox-relay status
kvbox-relay rm home1On the host
kvbox-server relay <the line kvbox-relay add printed>
kvbox-server relay off # take the tunnel downThe host brings the tunnel up (and again on boot) and, when it later joins a control plane, advertises the lent public IP by default. The relay forwards the control plane port 7777 and the per-box SSH ports 20000 to 60000.
Bots
The relay is the only machine that sees a visitor's real address, so bots are stopped there. An address that opens more than 60 new connections to box ports at once, then more than 30 a minute, is blocked from the relay for an hour. Port 7777 never counts, and the WireGuard port is never blocked, so a host keeps its tunnel even if someone in the same house trips the guard. The installer also adds fail2ban for the relay VM's own SSH, unless fail2ban is already installed.
kvbox-relay status # shows who is blocked and for how long
kvbox-relay unban <ip> # lift a block earlyTo change the limits, put KVBOX_RELAY_CONN_BURST=, KVBOX_RELAY_CONN_RATE= (like 30/minute) or KVBOX_RELAY_BAN_SECONDS= lines in /etc/kvbox-relay.env (owned by root), then run sudo kvbox-relay apply. A new ban length applies only after a reboot.