Skip to main content
Installation

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.tar or rstwaf-<version>-linux-arm64.tar, and the matching .sha256 file.
  • 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-amd64

Run install.sh

sudo sh install.sh --pubkey /path/to/rstwaf-release.pub

The 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

OptionDefaultDescription
--pubkey FILEkey in the packageRelease public key
--prefix DIR/opt/rstwafInstall directory; must be an absolute path
--http-port, --https-port80, 443Site ports
--console-port9443Console port
--console-bind127.0.0.1Console listen address
--health-timeout180Seconds to wait for the health check
--no-update-runnerinstalledSkip the systemd unit that carries out upgrade requests from the console; see Upgrade and backup

Optional components, none installed by default:

OptionDescription
--node-url URL, --node-bind ADDRAccept data plane nodes; see Multi-node and high availability
--shared-storeBundled Valkey so that rate-limit and waiting-room counters are shared across nodes
--fw-bouncerHost firewall bans: syncs bans to the host's nftables so they apply to every port
--ssh-protect, --ssh-log PATHSSH 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-rdnsMakes one PTR lookup to check whether internal DNS can reverse-resolve public addresses
--tune-kernelWrites 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 --status

Host 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 backups

Add --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.

On this page