Skip to content

ICAP antivirus servers ​

These commands manage the ICAP antivirus servers that file upload checks send files to. Each server can be tested with the EICAR test string, and each icaps:// server can have its own CA and client certificate.

waap icap get ​

Shows the ICAP servers as configured (YAML), then each server's state, last scan, latency of the last scan, last error, and the applications using it.

sh
waap icap get [-check] [-json]

The state is one of:

  • ok
  • error
  • pending: the server is not applied on the inspection node yet.
  • unknown: this process runs no inspection service.

-check also asks every server's OPTIONS now, at most 5 s. Viewers and above.

waap icap set ​

Replaces all ICAP servers (icap_servers) with the records in FILE.

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

Each record has these keys:

  • name
  • url: icap://host[:1344]/service or icaps://host[:11344]/service
  • timeout: 1s to 61s, default 10s
  • max_concurrent: 1 to 256, default 32
  • preview: auto, off or a byte count
  • tls: server_name, and the file paths ca, cert and key. The commands waap icap ca and waap icap client-cert manage these.

A server still named by an application cannot be removed. Administrators only.

waap icap test ​

Sends the EICAR test string and a clean file to the server through the inspection node. It prints the server's methods, preview size, service tag, and each verdict with its time.

sh
waap icap test -name SERVER [-json]

Exit code 0 when the first file is reported infected and the second clean. Exit code 1 otherwise, or when the server is unreachable. Administrators only. The command needs the inspection service in the process it talks to (waap run, or the node that runs it).

waap icap ca ​

Sets or removes the CA that signs an icaps:// server's certificate. With -f, FILE is a PEM bundle. Without a CA, the system's roots are used. The CA is stored with the configuration version. Administrators only.

sh
waap icap ca -name SERVER (-f FILE | -remove) [-m WHY] [-dry-run]

waap icap client-cert ​

Sets or removes the client certificate and key for mutual TLS. The pair is checked (matching, not expired) before it is stored. The key is never shown again. Administrators only.

sh
waap icap client-cert -name SERVER (-cert FILE -key FILE | -remove) [-m WHY] [-dry-run]