Skip to content

Applications, listeners and proxies ​

These commands list and change applications, their certificates and CAs, the listeners (virtual servers) they are served on, the VIPs behind those listeners, and the trusted proxy networks.

waap apps list ​

Lists applications with mode, hostnames, listeners, server pool and custom pages, and the active version. The JSON output also includes virtual servers (VIP, port) and protocols.

sh
waap apps list [-json]

waap apps get ​

Shows the application's settings (value, default, whether set, range), its certificate (subject, names, issuer, validity, fingerprint; never the key) and its upstream CA.

sh
waap apps get -app NAME [-json]

waap apps fields ​

Lists every application setting key with its default and range.

sh
waap apps fields

The keys are:

  • hostnames, listeners, server_pool, redirect_to_https
  • upstream.targets, upstream.balancing, upstream.connect_timeout
  • upstream.health_check.{path,interval,timeout,healthy_after,unhealthy_after}
  • upstream.tls.{enabled,verify,server_name}
  • policy.mode, policy.on_inspection_failure
  • policy.logging.{mask,traffic,response_body}. In the UI this is the application's Logging page. mask is off or pci; traffic is inherit, all, sample or off.
  • policy.allowed_methods, policy.block_response.status
  • policy.limits.{request_body,header_count,header_bytes,arguments,module_budget}
  • policy.signatures.{enabled,mode,paranoia_level,anomaly_threshold.inbound,anomaly_threshold.outbound,response_body,answer_confirmation,allowed_redirect_hosts,prefilter}
    • answer_confirmation is true or false, default true.
    • allowed_redirect_hosts is a comma-separated host list. A leading *. is allowed. At most 256 entries.
    • prefilter is true or false, default true: it skips the CRS rules that cannot match a request. See admin guide section 4.

The UI calls listeners Virtual servers, and policy.mode and module mode Protection mode. The YAML and API keys and CLI assignments stay the same. In the UI, application settings are split across Hostnames and addresses, General, Signatures and Server pool. waap apps get and waap apps set still read or change them together.

Warning and picture ui_route values point to these pages, and to the new Traffic, Shared lists and System routes. Old browser URLs redirect. Management API and CLI paths are unchanged.

waap apps add ​

Adds an application in detect mode. policy.mode=block is refused.

sh
waap apps add -app NAME [-copy-from APP] [-cert FILE -key FILE] [-m WHY] [-dry-run] KEY=VALUE...

hostnames, listeners and either server_pool=NAME or legacy upstream.targets=HOST:PORT are required. Lists are comma-separated. server_pool attaches an existing pool. Legacy targets create a pool named after the application; an existing pool with that name is refused. Do not combine server_pool and upstream.* in one edit.

FlagWhat it doesDefault
-app NAMEApplication to add.
-copy-from APPCopies another application's security policy without its exceptions.
-cert FILE, -key FILECertificate chain and key (PEM). Needed with an https listener. Stored with the version.
-m WHYReason recorded with the change.
-dry-runPreviews the change without storing a version.

Needs a caller for all applications (the admin socket is one).

sh
waap apps add -app shop hostnames=shop.test listeners=web server_pool=shop

waap apps set ​

Changes settings as a new version. KEY= goes back to the default.

sh
waap apps set -app NAME [-m WHY] [-dry-run] KEY=VALUE...
FlagWhat it doesDefault
-app NAMEApplication to change.
-m WHYReason recorded with the change.
-dry-runPreviews the change without storing a version.
  • An empty upstream.health_check.path removes the health check.
  • upstream.tls.enabled=false removes the upstream TLS settings and CA.
  • In format 2, upstream.* edits the referenced pool when only this application uses it.
  • The upstream.* keys are deprecated for one release. The CLI prints a notice, and API responses carry Deprecation and Warning headers.
  • A shared pool refuses these keys. Use waap pools set -pool NAME instead.
  • Weight and state are preserved when an existing server address is kept.
  • server_pool=NAME selects an existing pool. Do not combine it with upstream.*.
  • API field options contain visible pool names.
sh
waap apps set -app shop -m "note" policy.mode=block

waap apps remove ​

Removes the application. Its events stay. The last application cannot be removed.

sh
waap apps remove -app NAME [-m WHY] [-dry-run]

waap apps cert set ​

Uses this certificate chain and unencrypted key (PEM, at most 8 MiB each). They are checked against the hostnames and stored with the version.

sh
waap apps cert set -app NAME -cert FILE -key FILE [-m WHY] [-dry-run]

waap apps cert remove ​

Removes the application certificate. Remove only works without an https listener.

sh
waap apps cert remove -app NAME [-m WHY] [-dry-run]

waap apps ca set ​

Deprecated for one release; use waap pools ca set. Verifies the upstream servers against this CA bundle (PEM) and turns upstream TLS on. For format 2 this changes the application's exclusive pool. A shared pool refuses the upload.

sh
waap apps ca set -app NAME -f FILE [-m WHY] [-dry-run]

waap apps ca remove ​

Deprecated for one release; use waap pools ca remove. Goes back to the system roots.

sh
waap apps ca remove -app NAME [-m WHY] [-dry-run]

waap listeners get ​

Prints the listeners (virtual servers) as YAML.

sh
waap listeners get [-json]

waap listeners set ​

Replaces the listeners with the records in FILE (YAML or JSON). Each record has name, either address (IP:port) or vip and port, protocol (http or https), and tls: {min_version: "1.2"|"1.3"}.

sh
waap listeners set -f FILE [-m WHY] [-dry-run]

A listener an application uses cannot be removed.

waap listeners add ​

Adds one virtual server. Give either a VIP with a port, or an inline address, not both. A port without a VIP is refused with "port is used only with vip".

sh
waap listeners add -listener NAME (-vip VIP -port PORT | -address IP:PORT) [-protocol http|https] [-tls-min 1.2|1.3] [-m WHY] [-dry-run]
FlagWhat it doesDefault
-listener NAMEName of the virtual server.
-vip VIP, -port PORTVIP and port.
-address IP:PORTInline address. Use instead of -vip and -port.
-protocolhttp or https. https needs an application certificate.http
-tls-minLowest TLS version for https: 1.2 or 1.3.
-m WHYReason recorded with the change.
-dry-runPreviews the change without storing a version.
sh
waap listeners add -listener vs-dvwa -vip vip-dvwa -port 18080

waap listeners remove ​

Removes one virtual server. Refused while an application uses it.

sh
waap listeners remove -listener NAME [-m WHY] [-dry-run]

waap vip list ​

Lists each VIP with its virtual servers (listeners) and applications. For each node it shows whether the address is on one of the node's interfaces: present, missing or unknown. A floating VIP is present only on the node holding it.

sh
waap vip list [-json]

API: GET /v1/vips.

waap vip show ​

Shows one VIP with each setting and its help.

sh
waap vip show -vip NAME [-json]

API: GET /v1/vips/{name}.

waap vip fields ​

Lists the VIP keys: address, description, floating.

sh
waap vip fields

waap vip add ​

Creates a VIP as a new configuration version. -dry-run previews it.

sh
waap vip add -vip NAME [-m WHY] [-dry-run] address=IP [description=TEXT] [floating=true]
  • address is an IPv4 or IPv6 address without port or prefix.
  • floating=true is accepted only for an address in ha.virtual_addresses.
  • An empty description= removes it.

API: POST /v1/vips.

sh
waap vip add -vip vip-dvwa address=127.0.0.2 "description=DVWA lab"

waap vip edit ​

Changes a VIP as a new configuration version. Flags come before the assignments.

sh
waap vip edit -vip NAME [-m WHY] [-dry-run] KEY=VALUE...

API: PUT /v1/vips/{name}.

sh
waap vip edit -vip vip-dvwa -dry-run description=

waap vip remove ​

Removes a VIP as a new configuration version. Refused while a virtual server uses the VIP.

sh
waap vip remove -vip NAME [-m WHY] [-dry-run]

API: DELETE /v1/vips/{name}.

waap trusted-proxies get ​

Shows the networks whose X-Forwarded-For is trusted for the client address.

sh
waap trusted-proxies get [-json]

waap trusted-proxies set ​

Sets the trusted networks. set without a CIDR trusts none.

sh
waap trusted-proxies set [-m WHY] [-dry-run] CIDR...