Firewall Configuration and Rules Audit Script (Windows and Linux)
Read-only scripts that export firewall profiles, default policies and every enabled rule, and flag rules that open sensitive ports (RDP, SMB, SSH, databases) to any address.
Windows (.bat)Linux (.sh) USD 3.00 for all versions · read-only · 1 hour 30 minutes to download
Pay via M-Pesa, Airtel Money and local mobile money across East Africa, or by Visa / Mastercard. How to pay
| Script | Firewall Configuration and Rules Audit Script (Windows and Linux) |
|---|---|
| Platform | Windows Firewall; Linux ufw, firewalld, nftables, iptables |
| Audit area | Firewalls |
| Purpose | Gives the auditor a complete, dated export of host firewall rules and a list of risky rules to review with the network team. |
| Price | USD 3.00, all platform versions |
Prerequisites
- Windows 10/11 or Server 2016+, or a Linux server with ufw, firewalld, nftables or iptables
- Administrator (Windows) or sudo (Linux) to read the rules
What the script checks
- Profiles/zones and whether the firewall is on
- Default inbound and outbound actions, logging of blocked connections
- Every enabled rule with direction, action, protocol, ports, remote addresses and program
- Rules that allow RDP, SMB, Telnet, FTP, VNC, WinRM, SSH or databases from any address
- Rules that allow all inbound traffic, IPv6 without rules
- Listening ports to compare with the rules
- The full script for Windows, Linux
- How to open the correct console, and the permissions it needs (least privilege)
- Step-by-step instructions
- The expected output and how to interpret it
Also included in the zip as README-how-to-run.txt. Follow the audit process guide for scope, authorisation and evidence.
Safe by design
- Read-only: installs nothing and changes no settings.
- Sends nothing to our servers; results stay on your computer.
- Secrets are masked and password hashes are never printed.
- Plain text: open it in any editor and check every line before running it.
Also known as: firewall audit script, windows firewall rules export, iptables audit script, ufw audit, firewalld audit, firewall rule review, open ports audit, firewall configuration review.
Templates to use with this script
More audit scripts
Questions
Is the firewall configuration and rules audit script safe to run?
Yes. It only reads information and writes its results next to itself. It installs nothing, changes no settings and sends nothing to our servers. Secrets it finds are masked, and password hashes are never printed. It is plain text: open it in any editor to check every line before you run it.
How do I get the script?
Click "Get script", pay USD 3.00 through APOPS Pay (M-Pesa, Airtel Money, local mobile money across East Africa, or Visa / Mastercard payment), then download the Windows, Linux versions. One payment covers every operating system.
How long can I download it?
For 1 hour 30 minutes after payment, as often as you like. You are told this before you pay. Keep the zip: the script itself never expires.
Do I need administrator rights?
Administrator (Windows) or sudo (Linux) to read the rules
What do I get after paying?
The full script for each platform, how to open the correct console, the permissions it needs, step-by-step instructions, the expected output and how to read the results. They are shown on this page and included as a README in the zip.