Installation
Verify and install the offline package, installer options and optional components, first sign-in, and uninstalling.
Run the installation on the control plane host. In a single-host deployment that host also runs the data plane. For a multi-node deployment, install the control plane as described here, then join nodes as described in Multi-node and high availability.
Before you start
- The package for your architecture,
rstwaf-<version>-linux-amd64.tarorrstwaf-<version>-linux-arm64.tar, and the matching.sha256file. - The release public key
rstwaf-release.pub, obtained through an independent channel such as the Reallysec website or your contract annex. Do not use a copy that travelled with the package. - A host that meets the requirements.
Contact us to obtain the package and the public key.
Install
Verify and unpack
sha256sum -c rstwaf-<version>-linux-amd64.tar.sha256
tar -xf rstwaf-<version>-linux-amd64.tar
cd rstwaf-<version>-linux-amd64Run install.sh
sudo sh install.sh --pubkey /path/to/rstwaf-release.pubThe installer verifies the signature and checksums, runs preflight checks, loads the images with docker load and checks their IDs, writes random secrets to /opt/rstwaf/.env (mode 0600, never printed), starts the services and runs a health check.
Without --pubkey, the installer falls back to the key inside the package and prints its key id, which you must compare by hand with the key id Reallysec publishes. Later upgrades are always verified with the installed key.
Note the initial password
At the end, the installer shows the initial administrator password once. The user name is admin. The password is not written to disk, so record it now.
The license fingerprint line in the output tells you whether a host fingerprint is available. If it says one cannot be created, see the FAQ.
Open the console
By default the console listens on 127.0.0.1:9443 only. From an administrator's computer, open an SSH tunnel:
ssh -L 9443:127.0.0.1:9443 <host>Then open http://127.0.0.1:9443. To reach the console directly from a management network, see Console access.
Sign in for the first time
Sign in as admin with the initial password and change the password when prompted. Then add your first site; see the Quick start.
Installer options
| Option | Default | Description |
|---|---|---|
--pubkey FILE | key in the package | Release public key |
--prefix DIR | /opt/rstwaf | Install directory; must be an absolute path |
--http-port, --https-port | 80, 443 | Site ports |
--console-port | 9443 | Console port |
--console-bind | 127.0.0.1 | Console listen address |
--health-timeout | 180 | Seconds to wait for the health check |
--no-update-runner | installed | Skip the systemd unit that carries out upgrade requests from the console; see Upgrade and backup |
Optional components, none installed by default:
| Option | Description |
|---|---|
--node-url URL, --node-bind ADDR | Accept data plane nodes; see Multi-node and high availability |
--shared-store | Bundled Valkey so that rate-limit and waiting-room counters are shared across nodes |
--fw-bouncer | Host firewall bans: syncs bans to the host's nftables so they apply to every port |
--ssh-protect, --ssh-log PATH | SSH brute-force protection: reads the host's sshd log and bans offending IPs for 4 hours. Needs --fw-bouncer as well to take effect on the SSH port |
--probe-rdns | Makes one PTR lookup to check whether internal DNS can reverse-resolve public addresses |
--tune-kernel | Writes host kernel settings for high traffic |
Host protection can also be turned on or off after installation:
sudo /opt/rstwaf/host-protect.sh --fw on --ssh on
sudo /opt/rstwaf/host-protect.sh --statusHost protection never bans internal addresses (10/8, 172.16/12, 192.168/16 and loopback).
Uninstall
sudo /opt/rstwaf/uninstall.sh --yes --keep-data # keep data volumes, .env, data and backups so you can reinstall later
sudo /opt/rstwaf/uninstall.sh --yes # remove everything, including the database, certificates and backupsAdd --remove-images to delete the RST WAF images as well.
Uninstalling without --keep-data cannot be undone. After a reinstall the host fingerprint changes and the licence must be issued again.
Requirements and network
Check host architecture and sizing, Docker versions, ports and the host fingerprint before installing, and which connections to open when you turn on features that are offline by default.
Configuration reference
Settings in the install directory's .env that operators can change, covering console access, the online switch, detection defaults, overload protection, log capacity, online updates and MCP.