Web Application Firewall#

A proxy host can inspect HTTP requests with Coraza and the OWASP Core Rule Set. The control is on the Security tab. It is off for new hosts and for hosts saved before the WAF columns existed.

Modes#

ModeBehavior
DetectionThe request continues. Matched rule IDs are written to the Caddy log.
BlockingA request the ruleset marks is denied. Matched rule IDs are still logged.

Detection is the mode selected when the WAF is first enabled. Blocking is the choice when a false positive is less costly than letting the request through.

The WAF cannot inspect TLS passthrough traffic. Saving a host with both enabled is rejected.

Ruleset#

The controller embeds one CRS release and writes it onto each server when configuration is applied. Servers do not download rules. The same files are used for every host; the per-host choice is only whether the engine detects or blocks.

There is no control for paranoia level, per-host rule exclusions, or a ruleset update inside the product. Changing the ruleset means shipping a new PosternProxy version.

A host with the WAF left off does not add a WAF handler to the generated configuration.

Reading matched rule IDs#

Matches are listed under Security → WAF Matches. The page includes the local server and remote agents. Filter by server, then by proxy host. A row shows when it happened, which server and proxy host it belongs to, the rule ID, whether the engine logged or denied the request, and the request host and path.

The list keeps a short recent window. A server that has not reported has no rows. Query strings, headers, and the matched text stay on the server that handled the request. These events are not written to the admin audit log.

The same events are written to a log file on the server that handled the request. On a systemd install that file is /var/log/posternproxy-waf/matches.log. The controller reads the local file, and each remote agent reports new lines. An install created before this page needs that directory, owned by the Caddy user and readable by the certificate group, before matches are collected.

What this does not do#

The WAF inspects HTTP requests on hosts where it is enabled. It does not absorb volumetric attacks, and it does not replace an edge filter or CrowdSec IP reputation. See CrowdSec remediation (enterprise) and the home-lab guide’s host-level section.

PosternProxyQuick start →