InfraGuard

Firewall-rule registry (instance)

Collect and catalog per-instance firewall rules (iptables/firewalld/ufw) via a probe, feeding the Security ▸ Firewall attack-surface map.

Overview — what it does

The [fw] button on an Instance card catalogs each instance's firewall rules into infr_instance_firewall. It records, from an asset viewpoint, which ports/services are open under which policy (allow/deny) — and Security ▸ Firewall consumes this data for its attack-surface map.

Layout

A per-instance rule list — chain / port / protocol / source / action (ACCEPT · DROP · REJECT) / backend (iptables · firewalld · ufw). It distinguishes managed ports from "surprise" exposure.

How to use

# Seeded in Inventory ▸ Tools · runs locally (no credentials)
node infr_firewall_probe.cjs
# Paste the JSON into [fw] ▸ JSON import to register

The probe detects the active firewall backend and normalizes rules. Registered rules are cross-checked against registered services (infr_service) in Security ▸ Firewall and classified as managed vs unexpected ports.

Data sources

Access

Read level≥1; write level≥2. Judging open-port exposure (attack surface) belongs to Security ▸ Firewall.

Related

The [fw] button on the card
The [fw] button on the card