Skip to content

Server commands ​

The server commands start the product: the control plane, the inspection service and Envoy, plus first-run setup, configuration checks, development certificates and GeoIP databases.

waap run ​

Runs the control plane and the inspection service in one process and starts Envoy (under the guard process, see waap envoy-guard).

sh
waap run -config /etc/waap/waap.yaml -data-dir /var/lib/waap -runtime-dir /run/waap
FlagWhat it doesDefault
-validation-workersApplications a validation scans at once, up to 4. Lower it if the host runs out of memory.2
-config FILEConfiguration file. Imported as version 1 when the policy store is empty, ignored afterwards (use config apply or SIGHUP to import changes).
-data-dir DIRDatabases (waap.db), management certificate, stored files, pair settings (ha/). Created with mode 0700.data
-runtime-dir DIRUnix sockets and the generated Envoy bootstrap. Mode 0700. Keep it short on macOS: socket paths are limited to 104 bytes.$TMPDIR/waap
-node-id IDThis node's identity: Envoy node, events, audit chain, pair membership. Must stay the same across restarts. In a pair, letters, digits, ., _, - (at most 63).host name
-envoy PATHEnvoy binary. "" starts Envoy yourself with the printed command.envoy
-mgmt-addr HOST:PORTManagement API and web UI (HTTPS). "" disables it.127.0.0.1:9443
-mgmt-cert FILE, -mgmt-key FILEManagement certificate and key (PEM). Without them, a self-signed pair is created in -data-dir and renewed 30 days before expiry.
-metrics-addr HOST:PORTPrometheus metrics. "" disables it.127.0.0.1:9464
-listener-address NAME=HOST:PORTBinds the configured listener NAME to this address on this node only (repeatable). Per node, never replicated: for example, to bind each node of a pair to its own interface address.
-log-level LEVELdebug, info, warn, error.info

Signals: SIGHUP imports the -config file as a new version. SIGINT and SIGTERM stop Spalto gracefully (Envoy is stopped too).

waap setup ​

First-run setup of a running node. It creates the first administrator (role admin, all applications) over the local admin socket and prints the console address.

sh
waap setup [-user admin] [-password-stdin] [-wait 30s] [-runtime-dir DIR]
FlagWhat it doesDefault
-userName of the first administrator.admin
-password-stdinReads the password from standard input instead of generating one.off
-waitHow long to wait for the service to answer.30s
-runtime-dirRuntime directory of the running node.$WAAP_RUNTIME_DIR, else /run/waap when a packaged node runs there, else the temporary directory

Without -password-stdin a 24-character password is generated and printed once on standard output. It is never logged. The command refuses with exit 1 when an administrator already exists. The -runtime-dir default applies to every admin command. Needs the privileges of the waap user or root.

waap control ​

The control plane alone: the policy store, the Envoy configuration server, the management API, SIEM export and the pair service. It takes the same flags as waap run, except that metrics default to 127.0.0.1:9465.

It does not start an inspection service. Run waap inspect next to it.

waap inspect ​

The inspection service alone.

  • Without -config it follows the control plane over node.sock in -runtime-dir and waits for it.
  • With -config it runs standalone from the file.
FlagWhat it doesDefault
-configConfiguration file, for standalone operation.
-data-dirData directory.
-runtime-dirRuntime directory.
-node-idThis node's identity.
-metrics-addrPrometheus metrics address.127.0.0.1:9464
-log-levelLog level.

waap validate ​

Checks a configuration file without running it, and prints a summary.

sh
waap validate -config FILE

The check covers syntax, references, certificates, block pages and rules. The summary lists, per application, its mode, signatures, API protection (api=off, or its effective mode) and failure policy. Both configuration formats 1 and 2 are accepted.

For format 1 it prints format 1 upgraded: N pools created. Each application gets its own pool, including when servers are identical. The file is unchanged. The command exits with 1 on any error.

waap devcert ​

Writes a self-signed certificate NAME.crt and key NAME.key for local testing.

sh
waap devcert -name NAME [-dir DIR] [-days N] HOSTNAME...
FlagWhat it doesDefault
-nameFile base name for the certificate and key.
-dirOutput directory.configs/dev-certs
-daysValidity in days.30

waap geoip update ​

Downloads this month's DB-IP Lite database (CC BY 4.0) to -out and replaces the file atomically after checking it.

sh
waap geoip update [--city | --asn] [-out FILE] [-url URL]
FlagWhat it doesDefault
--cityDownloads "IP to City Lite". Give -out a file of your own, such as /var/lib/waap/city.mmdb, and use it in enrichment.city_database.
--asnDownloads "IP to ASN Lite". Give -out a file of your own, and use it in enrichment.asn_database.
-outOutput file.data/country.mmdb (country database)
-urlDownloads from a mirror instead. Accepts .gz or plain MMDB.

By default the country database is written; point geoip.database at it (absolute path). The running Spalto reloads a changed file.

The data requires the attribution "IP data by DB-IP.com" with a link to https://db-ip.com wherever results are shown.

waap geoip status ​

Shows the databases the running configuration names (geoip.database, enrichment.city_database, enrichment.asn_database): path, whether it loads, its build date and size, whether enrichment is on, and the attribution line.

sh
waap geoip status [-json] [-runtime-dir DIR]

See the admin guide, section 33.6.

waap envoy-guard ​

Internal. waap run starts it, never an operator by hand. It runs Envoy and stops it when Spalto exits, even when Spalto is killed, so Envoy never serves without inspection or keeps the ports.