Firewall Rule Analyzer
Review a rule set the way an auditor does: which rules can never match, which repeat another rule, which open sensitive ports to the internet, and what a cleaned list looks like.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste the rules
Paste or open an export, or load one of the five samples to see the format.
- 2Check the format
Confirm the detected format in the selector, or pick it by hand.
- 3Read the findings
Filter by high, medium, low or info and read the fix for each rule.
- 4Inspect parsed rules
Use the parsed rules tab to see protocol, source, destination and ports as the tool understood them.
- 5Export the cleanup list
Download the CSV for change tickets, with the related rule for every shadowed or redundant line.
- 6Review the cleaned set
Copy the cleaned rule set, compare it with the original and apply it in a maintenance window.
About this tool
Firewall rule sets grow by addition. Someone opens a port for a project, someone else adds a narrower rule below an older wide one, and after a few years nobody knows which lines still matter. NIST SP 800-41 recommends regular rule reviews for exactly this reason. This analyzer reads five common formats: iptables-save output, nftables rule sets, Cisco IOS and ASA style access lists, the JSON from aws ec2 describe-security-groups, and the text of netsh advfirewall firewall show rule name=all. It turns each rule into protocol, source, destination and port ranges, then compares every rule with the rules that come before it. Rules that can never match because an earlier rule with a different action already catches all of their traffic are flagged as shadowed. Rules that repeat an earlier decision are redundant, identical lines are duplicates, and allow rules that open any-any access or sensitive services such as SSH, RDP, SMB or database ports to the whole internet are flagged as broad.
How rule order is handled
In iptables, nftables and Cisco ACLs the first matching rule wins, so the tool checks each chain or ACL from top to bottom. If an earlier rule with a different action covers every packet a later rule could match, the later rule is shadowed: it is dead code at best, and often a sign that someone believed traffic was blocked when it is not. AWS security groups have no order and only allow rules, so the tool looks for rules contained in other rules. Windows Firewall evaluates block rules before allow rules regardless of order, so an allow rule fully inside a block rule is reported as never applying.
What counts as covering
A rule covers another when its protocol is the same or any, its source and destination ranges contain the other rule's ranges, and its ports contain the other rule's ports. IPv4 addresses and CIDR blocks, Cisco wildcard masks and port ranges, lists and named services such as www and ssh are compared exactly. Interfaces, connection-state matches and Windows profiles must match too. Rules that use negation, object groups or non-contiguous masks are marked as not analysed rather than guessed.
Broad and sensitive rules
Allow rules from 0.0.0.0/0 or ::/0 to ports such as 22, 23, 3389, 445, 3306, 5432, 6379, 9200 and 27017 are rated high, as are rules that allow thousands of ports from anywhere. Very large source prefixes and wide port ranges from internal networks are rated low. A default ACCEPT policy on an input or forward chain is reported separately. Outbound allow-all is shown as low, since it is a common default rather than an error.
Limits
The analyzer reads text; it does not connect to firewalls or cloud accounts. It does not resolve object groups, address sets defined elsewhere or security-group references into addresses, and IPv6 prefixes are compared as text. A clean report is not proof of a safe network: review intent with the owners before removing rules, and keep console access while you apply changes.
Worked example
An iptables-save file has ten INPUT rules and a default ACCEPT policy. The tool reports the default policy as medium. Rule 3 allows TCP 22 from anywhere (high, SSH open to the internet), so rule 4, which allows TCP 22 only from 203.0.113.0/24, is redundant. Rule 5 allows TCP 80 and 443 from anywhere, which shadows rule 6, a DROP for 198.51.100.7 on port 443: that address was never blocked. Rule 7 opens MySQL 3306 to the internet (high), rule 8 allows 64,512 ports from 10.0.0.0/8 (low), and rule 9 repeats port 80 (redundant). The cleanup tab comments out rules 4, 6 and 9, and the CSV lists all eight findings with fixes.
Quick facts
- Category: Security & Privacy
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: NIST SP 800-41 Rev. 1, Guidelines on Firewalls and Firewall Policy
Frequently asked questions
Which formats can I paste?
iptables-save or iptables commands, nftables list ruleset output, Cisco numbered or named access lists, AWS describe-security-groups JSON and Windows netsh advfirewall show rule output. The format is detected automatically, and you can force one.
What is a shadowed rule?
A rule that can never match because an earlier rule with a different action already matches all of its traffic. The classic example is a deny for one bad address placed below an allow for everyone.
Does it change my firewall?
No. It only reads the text you paste. The cleanup tab produces an edited copy you can review and apply yourself.
Why is my rule marked not analysed?
It uses negation, an object group, an address set or a non-contiguous wildcard mask. Those cannot be compared exactly from the text alone, so the tool leaves them for a manual check.
Are IPv6 rules supported?
They are read, and ::/0 counts as open to the world, but IPv6 prefixes are compared as text rather than as ranges, so overlaps between different IPv6 prefixes are not detected.
Is my configuration uploaded?
No. Parsing and analysis run in your browser, which matters because rule sets reveal internal addresses and services.
