pwnsycybersecurity + privacy community
Runs on your device
Config Audit

Firewall Rule Auditor

iptables, ASA, FortiGate, PAN-OS or AWS rules in; risky, shadowed and unused rules out.

Ruleset
Examples

Your ruleset never leaves this tab.

All 15 checks, exports and FAQ

Background readingFirewallsNetwork segmentationCommon ports

All 15 checks

Export commands

PlatformCommandGives
iptablesiptables-save -cRules, chain policies, packet counters
Cisco ASAshow running-config object
show running-config object-group
show access-list
show running-config access-group
Objects, groups, rules with hitcnt, interface binding
FortiGateshow firewall address
show firewall addrgrp
show firewall service custom
show firewall policy
Objects and policies in evaluation order
PAN-OSset cli config-output-format set
configure
show
Addresses, services and security rules as set commands
AWSaws ec2 describe-security-groups --output jsonIngress 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.