Firewall Rule Auditor
iptables, ASA, FortiGate, PAN-OS or AWS rules in; risky, shadowed and unused rules out.
Background readingFirewallsNetwork segmentationCommon ports
All 15 checks
Export commands
| Platform | Command | Gives |
|---|---|---|
| iptables | iptables-save -c | Rules, chain policies, packet counters |
| Cisco ASA | show running-config objectshow running-config object-groupshow access-listshow running-config access-group | Objects, groups, rules with hitcnt, interface binding |
| FortiGate | show firewall addressshow firewall addrgrpshow firewall service customshow firewall policy | Objects and policies in evaluation order |
| PAN-OS | set cli config-output-format setconfigureshow | Addresses, services and security rules as set commands |
| AWS | aws ec2 describe-security-groups --output json | Ingress and egress rules per group |
Firewall audit FAQ
How do I export each ruleset?
iptables: iptables-save -c. Cisco ASA: show running-config object, show running-config object-group and show access-list (for hit counts). FortiGate: show firewall address, show firewall service custom and show firewall policy. PAN-OS: set cli config-output-format set, then configure and show. AWS: aws ec2 describe-security-groups --output json.
What does shadowed mean?
An earlier rule matches every packet the later rule would match, with a different action, so the later rule never takes effect. When the action is the same, the later rule is redundant.
What are the limits of the shadowing check?
It compares each rule with one earlier rule at a time, so a rule covered only by several earlier rules together is not reported. Objects missing from the paste are compared by name, and match conditions the auditor does not model, such as rate limits or user groups, stop it from claiming a rule is covered.
Is my ruleset uploaded?
No. Parsing and every check run on the page, and nothing is sent anywhere.
Check mapping cites PCI DSS v4.0, CIS Controls v8.1, ISO/IEC 27001:2022 Annex A, NIST CSF 2.0 and NIST SP 800-41 Rev. 1. Sample rulesets on this page are fictional and use documentation address ranges.