Skip to main content
Installation

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.

RST WAF ships as an offline installation package, one per CPU architecture: rstwaf-<version>-linux-amd64.tar and rstwaf-<version>-linux-arm64.tar. The package contains every container image. Installing, upgrading and uninstalling never contact the internet, and the running product makes no outbound connections by default.

Components

On a single host, these components run side by side:

ComponentRole
Data planeReceives site traffic, runs detection, access control, rate limits and challenges, then forwards requests to the origin
Control planeConsole, open API, configuration distribution, event and log storage, licensing
CrowdSecBan decisions used by the data plane and the optional host firewall component
Identity gatewayHandles sign-in for sites with identity authentication turned on

In a multi-node deployment one control plane manages several data plane nodes; see Multi-node and high availability. For Kubernetes, see Kubernetes.

Host

ItemRequirement
Operating systemLinux. Use the -linux-amd64 package on x86_64 hosts and the -linux-arm64 package on aarch64 hosts (Kunpeng, Phytium and similar). Installation stops if the host and package architectures differ
Docker Engine20.10 or later
Docker Compose plugin2.24 or later; docker compose version must print a version
MemoryAt least 2 GiB, 4 GiB recommended
CPU2 cores or more recommended
DiskAt least 5 GiB free in the Docker data directory and 1 GiB free in the install directory
Privilegesroot. To install as a member of the docker group, set RSTWAF_ALLOW_NONROOT=1 and make that user the owner of the install directory
Host identityThe control plane host needs /etc/machine-id, which serves as the licence's host fingerprint. Without it the product installs and runs, but cannot create an activation request; see the FAQ

install.sh checks each item and stops if one is not met.

The system repositories of Kylin V10, UOS 20 and openEuler 22.03 mostly ship Docker 18.09, which is too old. Install Docker's official static binaries and the Compose plugin offline instead. Docker 25 from the openEuler 24.03 LTS repository works as is.

On hosts with SELinux enforcing, if container logs show permission denied, allow the configuration directories under your security policy, for example chcon -Rt container_file_t /opt/rstwaf/config /opt/rstwaf/managed.

Sizing

The figures below are the sustained request rates of one data plane node for small GET and mixed traffic at a p99 latency of 50 ms or less. 2C4G and 4C8G were measured; the larger sizes are extrapolated from those results.

SizeSmall GET and mixed traffic (RPS)2 KB JSON or form POST (RPS)
2C4G500150
4C8G2,000175
8C16Gabout 4,000about 350
16C32Gabout 7,000about 650

Larger request bodies cost more CPU per request. Size sites that are mostly POST or API traffic by the JSON column. When planning for peak load, keep each node at or below 60% of its sustained rate and allow for the loss of one node.

Above 5,000 RPS, or with many short-lived connections, add --tune-kernel at install time so the script writes host kernel settings to /etc/sysctl.d/90-rstwaf.conf.

RST WAF handles application-layer (HTTP) overload and CC attacks. Volumetric L3 and L4 DDoS (SYN or UDP floods, reflection, link saturation) must be absorbed upstream by your carrier, a cloud scrubbing service or anti-DDoS appliances.

Ports

Inbound:

PortSourcePurpose
80/TCP, 443/TCPVisitorsSite traffic. Change with --http-port and --https-port
9443/TCPAdministratorsConsole (HTTP). Listens on 127.0.0.1 only by default; see Console access

In a multi-node deployment the control plane host also needs the following ports, open to the management network only:

PortPurpose
9444/TCPNode channel (TLS); nodes fetch configuration and send logs
8090/TCPCrowdSec LAPI; nodes sync ban decisions
9445/TCP, 9446/TCPIdentity gateway; sites with identity authentication on a node sign users in through it
6379/TCPShared counters, only when installed with --shared-store

Nodes only connect out to the control plane. The control plane never needs to reach the nodes.

Outbound connections

Offline is the default: with RSTWAF_ONLINE_FEATURES=off in .env, the running product makes no outbound connections and resolves no external names. The features below need outbound access. Each one is off by default and is turned on separately:

FeatureDestinationHow to turn it on
Online updatesVendor update channel updates.reallysec.com, or an internal mirrorTurn on under Settings > Online updates. In offline mode only an internal mirror is reachable until you tick Allow internet update source (允许访问公网更新源)
Automatic certificatesACME CA, plus the DNS provider API for DNS validationRSTWAF_ONLINE_FEATURES=on and a site set to automatic certificates
Verified crawler reverse DNSSystem DNS resolverRSTWAF_ONLINE_FEATURES=on and verified crawler reverse DNS not set to off
Online leaked-credential checkapi.pwnedpasswords.com; only the first 5 hex characters of the password's SHA-1 are sentRSTWAF_ONLINE_FEATURES=on and a site's account protection set to online
Feishu QR sign-in to the consoleopen.feishu.cn, accounts.feishu.cnTurn on under Settings > Third-party sign-in. In offline mode, tick Allow internet access to Feishu (允许访问公网飞书)
Alert notifications, log exportChannels, Syslog or Kafka addresses you configureCreate a channel. In offline mode only allowed internal addresses can be used
Threat intelligence (CrowdSec CTI, AlienVault OTX)cti.api.crowdsec.net, otx.alienvault.comRSTWAF_ONLINE_FEATURES=on, then configure under Settings > Threat intelligence
Online licence activationLicence serverRSTWAF_ONLINE_FEATURES=on and RSTWAF_LICENSE_SERVER set
LLM connectionThe RST AI Fabric address you enterConfigure under Settings > LLM connection. In offline mode only internal addresses are allowed

RSTWAF_ONLINE_FEATURES=on only permits outbound connections; each feature must still be turned on. Settings > Outbound connections lists the current state, destination and data sent for each item, which you can use for a data-transfer assessment; see Integrations.

Internal DNS

If your internal DNS returns NXDOMAIN for reverse (PTR) lookups of external addresses, as enterprise resolvers that only serve internal zones often do, set verified crawler Reverse DNS to Off under Access and CC protection > Challenges when running in online mode. Otherwise crawlers that can only be verified by reverse DNS, such as Baidu and Bing, are classed as fake. If you are unsure, add --probe-rdns at install time: the script makes one PTR lookup and recommends a setting. In offline mode only the built-in official IP ranges are used and no reverse DNS lookups are made.

On this page