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:
| Component | Role |
|---|---|
| Data plane | Receives site traffic, runs detection, access control, rate limits and challenges, then forwards requests to the origin |
| Control plane | Console, open API, configuration distribution, event and log storage, licensing |
| CrowdSec | Ban decisions used by the data plane and the optional host firewall component |
| Identity gateway | Handles 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
| Item | Requirement |
|---|---|
| Operating system | Linux. 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 Engine | 20.10 or later |
| Docker Compose plugin | 2.24 or later; docker compose version must print a version |
| Memory | At least 2 GiB, 4 GiB recommended |
| CPU | 2 cores or more recommended |
| Disk | At least 5 GiB free in the Docker data directory and 1 GiB free in the install directory |
| Privileges | root. 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 identity | The 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.
| Size | Small GET and mixed traffic (RPS) | 2 KB JSON or form POST (RPS) |
|---|---|---|
| 2C4G | 500 | 150 |
| 4C8G | 2,000 | 175 |
| 8C16G | about 4,000 | about 350 |
| 16C32G | about 7,000 | about 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:
| Port | Source | Purpose |
|---|---|---|
| 80/TCP, 443/TCP | Visitors | Site traffic. Change with --http-port and --https-port |
| 9443/TCP | Administrators | Console (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:
| Port | Purpose |
|---|---|
| 9444/TCP | Node channel (TLS); nodes fetch configuration and send logs |
| 8090/TCP | CrowdSec LAPI; nodes sync ban decisions |
| 9445/TCP, 9446/TCP | Identity gateway; sites with identity authentication on a node sign users in through it |
| 6379/TCP | Shared 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:
| Feature | Destination | How to turn it on |
|---|---|---|
| Online updates | Vendor update channel updates.reallysec.com, or an internal mirror | Turn on under Settings > Online updates. In offline mode only an internal mirror is reachable until you tick Allow internet update source (允许访问公网更新源) |
| Automatic certificates | ACME CA, plus the DNS provider API for DNS validation | RSTWAF_ONLINE_FEATURES=on and a site set to automatic certificates |
| Verified crawler reverse DNS | System DNS resolver | RSTWAF_ONLINE_FEATURES=on and verified crawler reverse DNS not set to off |
| Online leaked-credential check | api.pwnedpasswords.com; only the first 5 hex characters of the password's SHA-1 are sent | RSTWAF_ONLINE_FEATURES=on and a site's account protection set to online |
| Feishu QR sign-in to the console | open.feishu.cn, accounts.feishu.cn | Turn on under Settings > Third-party sign-in. In offline mode, tick Allow internet access to Feishu (允许访问公网飞书) |
| Alert notifications, log export | Channels, Syslog or Kafka addresses you configure | Create a channel. In offline mode only allowed internal addresses can be used |
| Threat intelligence (CrowdSec CTI, AlienVault OTX) | cti.api.crowdsec.net, otx.alienvault.com | RSTWAF_ONLINE_FEATURES=on, then configure under Settings > Threat intelligence |
| Online licence activation | Licence server | RSTWAF_ONLINE_FEATURES=on and RSTWAF_LICENSE_SERVER set |
| LLM connection | The RST AI Fabric address you enter | Configure 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.