audit_open_ports
audit_open_ports
Section titled “audit_open_ports”Audit WAN-facing exposure (port forwards and WAN_IN accept rules).
Side effects: None (read-only).
Cross-references firewall rules and port forwards to summarise what is reachable from the public internet:
- Active port forwards (DNAT into the LAN).
- WAN_IN
acceptrules, excluding the boilerplate established/related rule.
Useful as a “did I leave something open?” sanity check before publishing a service or shipping a config.
Example
Section titled “Example”audit_open_ports(controller="default")Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
controller | string | no | ”default” | Name of the UniFi controller to target. Defaults to "default". |