
Free database security policy template in Word: access reviews, MFA, encryption, logging and backups, a filled sample and an Excel controls checklist.
Free firewall configuration policy (Word, PDF) and an Excel rule register that flags any-any, unowned, expired and unused rules. Plus how to plan rules.


Content writer, trio.so
A firewall configuration policy is the written rulebook for your firewalls: what traffic is allowed by default (nothing), who may ask for a rule, what every rule must record, who approves changes, and how often the whole ruleset gets reviewed. This free template gives you that policy in Word and PDF, a one-page rule request form, a review sign-off page, and an Excel rule register that flags any-any rules, rules with no owner, expired temporary rules, unused rules and overdue reviews.
If you are here because a ruleset has grown to hundreds of rules nobody can explain, start with the planning steps and the review section. If an auditor asked for a written policy, the section-by-section table shows what it needs to say.
In short
A firewall policy answers two questions. The first is technical: what may cross each firewall, and what is blocked. The second is about people and process: who decides, who changes the rules, and how anyone can later prove a rule was approved. Most rulesets go wrong on the second question. Rules are added in a hurry, nobody writes down why, and two years later nobody dares remove them.
The template covers both. It applies to every place where traffic is filtered between networks:
A network security policy is the wider document: network architecture, segmentation, remote access, wireless, monitoring and acceptable use. The firewall configuration policy sits under it and goes into detail on one control: how firewall rules are planned, written, changed and reviewed. Smaller teams sometimes merge the two, but keeping the firewall rules in their own policy makes reviews easier, because the reviewer has one short document to test the ruleset against. For hardening settings on the firewall devices themselves, see our guide to firewall configuration best practices.
Good rules come from a plan, not from tickets that each ask for "access to the server". The steps below work for a new firewall and for cleaning up an old one.

List each perimeter firewall, internal firewall, VPN gateway, cloud security group and the host firewalls on your endpoints. Give each one an owner. You can't write rules for a firewall you didn't know about, and forgotten cloud security groups are a common source of "any" rules.
For each business service, write down who needs to reach what: source, destination, port and protocol, direction and the person who owns the need. The Rule Planning tab in the workbook is a traffic-flow worksheet for this. Group the flows by zone (internet to DMZ, users to servers, servers to the internet), because that is how the rules will be grouped later. Don't forget outbound traffic and the flows the firewall itself needs, such as DNS, time sync and updates.
Block all inbound and outbound traffic that a rule does not expressly allow, and end each ruleset with a deny-all rule that logs what it drops. NIST SP 800-41 calls this deny by default and notes it is safer than allowing everything that is not forbidden. The traffic-flow worksheet then becomes the list of allow rules, and nothing else.
Each rule should name the narrowest source, destination and service that does the job: one host or a small subnet, and a specific port. Avoid "any" in the source, destination or service of an allow rule. The one usual exception is a public service, such as a website on port 443, where any source is the point. Record that in the justification so a reviewer doesn't have to guess.
Use names a reader can understand without opening the rule, such as ALLOW-APP-TO-DB-5432 or TEMP-VENDOR-TO-SRV-3389. Put specific rules above general ones, deny rules for known bad traffic above broad allow rules, and group rules in labelled sections. Most firewalls check rules from the top down and stop at the first match, so order decides what happens.
Every new, changed or removed rule starts with a request (the template has a one-page form), is checked against the policy by the firewall owner and approved before it goes in. Test the rule in a change window with a way back, check that the service works and that nothing else broke, then record it. Emergency changes can be made first, but they still get approved and recorded afterwards.
Record every rule with its owner, reason, ticket, dates and review date in the rule register, and put the rule ID and ticket in the firewall's own comment field so the two can be matched. That record is what makes the next review fast.
The same steps work as a firewall implementation plan: inventory and flows are the planning phase, default deny and the rules are the configuration, the change process covers testing and deployment, and the review cadence is the management phase. NIST SP 800-41 describes firewall projects in those phases (plan, configure, test, deploy, manage).
Here is what a small, well-ordered ruleset can look like for a website with an app tier and a database. The hosts and ports are generic examples, not a recommended configuration for your network.
| Rule name | Source | Destination | Service | Action | Why |
|---|---|---|---|---|---|
ALLOW-INET-TO-WEB-443 | Any (internet) | Public web server | tcp/443 | Allow | Public website; any source is expected here |
ALLOW-WEB-DMZ-TO-APP-8443 | Web server | App server | tcp/8443 | Allow | Web tier calls the application tier only |
ALLOW-APP-TO-DB-5432 | App server subnet | Database server | tcp/5432 | Allow | Only the app talks to the database |
ALLOW-MGMT-TO-FW-SSH | Management subnet | Firewall management address | tcp/22 | Allow | Admins manage from the jump host only |
ALLOW-USERS-TO-DNS | User networks | Internal DNS servers | udp/53, tcp/53 | Allow | Users resolve names through company DNS |
TEMP-VENDOR-TO-SRV-3389 | Vendor VPN pool | One server | tcp/3389 | Allow | Temporary, end date in the comment and the register |
DENY-GUEST-TO-INTERNAL | Guest Wi-Fi | Internal networks | Any | Deny | Guests reach the internet only |
DENY-ALL-LOG | Any | Any | Any | Deny | Last rule: block and log everything else |
A few things to notice. Only the first rule uses "any" as a source, because the website is public. The web server can reach the app server, and only the app server can reach the database, so a compromised web server can't query the database directly. Administration comes from one management subnet. The vendor rule is temporary and carries its end date. Guest Wi-Fi is denied access to internal networks before any broader rule could let it through. The last rule blocks and logs everything else.
The Word template is written as policy statements you can adopt and edit. Values in brackets, such as the review interval or log retention, are suggestions to set from your own risk assessment.
| Section | What it sets |
|---|---|
| 1. Purpose | Why the policy exists: only traffic with a known business need passes, and every rule can be traced to an owner and an approval |
| 2. Scope | Network firewalls, VPN gateways, cloud security groups, host firewalls, and everyone who requests, approves or makes changes |
| 3. Roles | Firewall owner, security lead, rule owner, change approver, IT team for endpoints, internal audit |
| 4.1 Default deny | Block what is not allowed, inbound and outbound; a logged deny-all rule at the end |
| 4.2 Least privilege | Specific sources, destinations and ports; no any-any; any source only for public services; insecure services only by exception |
| 4.3 Documentation | The fields every rule records, and rule IDs in the firewall's comments |
| 4.4 Naming | ACTION-SOURCE-DESTINATION-SERVICE, TEMP- prefix for temporary rules |
| 4.5 Ordering | Specific above general, labelled sections, a shadowing check before every new rule |
| 4.6 Management access | Management network only, named accounts with MFA, role-based admin rights, backups before changes |
| 4.7 Logging | What is logged, where logs go, how long they are kept, which events raise alerts |
| 4.8 Change control | Request, check, approve, test, record; emergency changes approved afterwards |
| 4.9 Temporary rules | End date of no more than 90 days, removal on that date |
| 4.10 Review cadence | Whole ruleset every six months, sensitive zones every three months, signed off |
| 4.11 Exceptions | Written, approved by security, with compensating controls and an end date |
| 4.12 Enforcement | Changes outside the process are reversed or brought in |
| 5. Host firewalls | On for every profile, set centrally, users can't turn them off, status checked monthly |
| 6 and 7. Forms | Firewall rule request form and review sign-off page |
Two parts do most of the work in practice. Change control (4.8) stops new problems from getting in, and the review cadence (4.10) clears out the old ones. A policy with both, followed for a year, usually leaves a ruleset a new admin can read.
Firewall consoles show what a rule does, not why it exists. The register adds the why. For each rule, record:
Keep the register in one place for every firewall and cloud account, and use the rule ID in the firewall's own description field. Many firewalls can export their rules to CSV, so you can paste the technical columns into the register and add the owner and reason by hand. The Excel template is laid out that way: its Rule Register tab is a firewall rule template you fill row by row, and the flags work as soon as the dates and owners are in.
Rule documentation is also what change records and audits lean on. Our configuration management policy template covers configuration baselines more widely, and the IT change management template gives you a change process the firewall rule request can plug into.
Rulesets only grow unless someone prunes them. A review checks every rule against the register and the business, removes what is no longer needed and leaves a signed record. The template's review sign-off page and the workbook's Review Log are built for this.

| Check | What it means | How to handle it |
|---|---|---|
| Unused rules | No hits over the review window | Check the hit counter over at least a few months. Seasonal jobs and failover paths can be quiet for a long time, so ask the owner before you remove one. |
| Shadowed rules | An earlier rule already matches all the traffic, so the rule never fires | Use the firewall's rule analysis or policy optimizer. A shadowed deny rule is a gap: traffic you meant to block is allowed above it. |
| Overly broad rules | Any-any rules, any service, large subnets where one host would do | Narrow them to the traffic the logs show, then confirm with the owner. |
| Expired temporary rules | Past their end date and still in place | Remove them, and record them as findings so the next review can see the process slipped. |
| Rules with no owner or reason | Nobody can say why the rule exists | Ask the teams that use the destination. If nobody claims it, disable it for a short period before removing it. |
| Insecure services | Telnet, FTP, SMBv1 and similar still allowed | Remove them, or approve an exception with compensating controls and an end date. |
Review the whole ruleset of each firewall at least every six months and after major network changes, and review rules for sensitive zones every three months. Six months is also the PCI DSS v4.0.1 interval: requirement 1.2.7 asks for network security control configurations to be reviewed at least once every six months. Other frameworks leave the interval to you, but a firewall nobody has reviewed in a year is hard to defend in any audit.
For each firewall: export the rules, update the register (hit counts, owners, dates), sort by the Issues column, work through the flags, check for shadowed rules with the firewall's own tools, review who holds admin access to the firewall, confirm logging and backups, then fill in the sign-off page and add a row to the Review Log. The workbook calculates the next due date from the interval you set. Our IT audit checklist shows how auditors test this alongside other IT controls.
Network firewalls protect traffic that passes through them. A laptop on home or hotel Wi-Fi is outside that path, and inside the office, host firewalls are what stop one infected machine from reaching the others on the same network. That is why the policy has its own section for them:
NIST SP 800-41 recommends managing host-based firewalls centrally, so policies can be created, distributed and enforced for all users and groups, and CIS Controls v8.1 has separate Safeguards for a firewall on servers (4.4) and on end-user devices (4.5). Set host firewall rules per device group, like any other rule, and keep the exceptions in the same register. For the wider set of server settings, see our server hardening checklist, and for remote access through the firewall, the VPN policy template and remote desktop access policy template.
Most security frameworks expect written firewall rules, controlled changes and regular reviews, in general terms:
| Framework | Where firewall rules fit |
|---|---|
| NIST SP 800-41 Rev. 1 | Guidelines on Firewalls and Firewall Policy: block traffic the policy does not expressly permit (deny by default), plan, configure, test, deploy and manage firewalls, run ruleset changes through change management and review rulesets periodically. |
| NIST SP 800-53 Rev. 5 | SC-7 Boundary Protection, SC-7(5) Deny by Default, Allow by Exception, SC-7(12) Host-based Protection and CM-3 Configuration Change Control. |
| CIS Controls v8.1 | Control 4 Secure Configuration of Enterprise Assets and Software (Safeguards 4.4 and 4.5: a firewall on servers and on end-user devices), Control 12 Network Infrastructure Management and Control 13 Network Monitoring and Defense. |
| PCI DSS v4.0.1 | Requirement 1, Install and Maintain Network Security Controls: changes go through change control (1.2.2), every allowed service, protocol and port has an approved business need (1.2.5), rule configurations are reviewed at least once every six months (1.2.7), and traffic into and out of the cardholder data environment is limited to what is necessary (1.3.1, 1.3.2). |
| ISO/IEC 27001:2022 Annex A | 8.20 Networks security and 8.22 Segregation of networks. |
These are pointers, not a mapping. Read the publisher's text before you rely on them: NIST SP 800-41, NIST SP 800-53, the CIS Controls, the PCI DSS document library and ISO/IEC 27001. If you handle card data, our PCI DSS checklist covers the rest of requirement 1 and the other eleven, and our guide to CIS compliance explains how the Controls and Benchmarks fit together. Separating networks into zones is covered in our network segmentation guide.


The example register has thirteen rules on three firewalls, including a legacy any-any rule with no owner, a vendor rule that expired six days ago, a backup rule with no hits for months and a guest Wi-Fi rule that allows any service, so you can see each flag before you load your own rules. You can pair it with the VPN and remote desktop access policies from the same library of free IT policy templates.
trio.so does not manage network firewalls: perimeter appliances, internal firewalls and cloud security groups stay in their own consoles, and this policy and register cover them.
It manages the firewall built into each managed computer, which is the host firewall part of this policy (section 5). trio.so is device management for Windows, macOS, Linux, iOS/iPadOS and Android, from one console. For the host firewall section of the policy and the checks around it, it gives you:
See how policy management and patch management work. Plans start at $5 per device.
14-day free trial. No credit card required.
Sources. Last reviewed November 2026. Framework references are general pointers to NIST SP 800-41 Rev. 1, NIST SP 800-53 Rev. 5, the CIS Controls v8.1, PCI DSS v4.0.1 and ISO/IEC 27001:2022 Annex A; the wording of every policy statement is ours. trio.so is not affiliated with or endorsed by NIST, CIS, the PCI Security Standards Council or ISO.
trio.so sets Microsoft Defender Firewall, the macOS application firewall and ufw or firewalld through policy, and shows for each device whether the policy applied.
Have questions? We've got answers. This section covers some of the most commonly asked questions related to this topic.
Related
The related industry news, interviews, technologies, and resources.

Free database security policy template in Word: access reviews, MFA, encryption, logging and backups, a filled sample and an Excel controls checklist.

Free IT asset disposal policy template with a disposal form, checklist and Excel log. NIST SP 800-88 Rev. 2 methods, ITAD vendor checks and process flow.

Using a proper transition plan template can help organizations manage projects and employees better. Read on to learn more about transition plans.

Free IT incident report template in Word and PDF with an Excel incident log: severity levels, timeline, root cause, postmortem and a filled-in example.

Free data center access policy template in Word: zones, approvals, quarterly reviews, visitor rules and a filled sample, plus an Excel access register.

Free VPN policy template in Word and PDF: who gets access, approved protocols, MFA, split tunneling and logging, plus an Excel VPN access register.

Free IT offboarding checklist with an Excel tracker: access removal, device return and wipe, admin and BYOD steps, plus sample offboarding emails.

Free application access request form in Word and PDF, with a change and removal form, a filled-in example and an Excel log that flags expired access.
14-day free trial. No credit card required.
trio.so for MSPs: one console, separate clients