trio.so
Templates

Firewall Configuration Policy Template (Word, Excel + PDF)

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.

Mountain landscape representing leadership perspective and vision
Written by
Atena Ladchartabi

Content writer, trio.so

Published on
Modified on

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

  • Start every firewall closed (default deny) and allow only the traffic flows you have written down, with named sources, destinations and ports.
  • Give every rule an owner, a reason, a ticket and, if it is temporary, an end date. A rule nobody can explain is a finding.
  • Run every new, changed or removed rule through a request, an approval, a test and a record.
  • Review the whole ruleset at least every six months and remove unused, shadowed, overly broad and expired rules.

What a Firewall Configuration Policy Covers

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:

  • Network firewalls: perimeter firewalls, internal firewalls between zones (users, servers, guest Wi-Fi, management) and VPN gateways.
  • Cloud filtering: security groups and cloud firewall rules in every cloud account.
  • Host firewalls: the firewall built into each laptop, desktop and server, which still protects a laptop on hotel Wi-Fi when no network firewall is in the path.

Firewall Policy vs Network Security Policy

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.

How to Plan Firewall Rules, Step by Step

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.

How to plan firewall rules: inventory, traffic flows, default deny, least privilege, naming and order, change control, documentation, then review
How to plan firewall rules: inventory, traffic flows, default deny, least privilege, naming and order, change control, documentation, then review

1. Inventory Every Filtering Point

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.

2. Map the Traffic Flows

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.

3. Start From Default Deny

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.

4. Write Least-Privilege Rules

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.

5. Name and Order the Rules

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.

6. Request, Approve and Test Every Change

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.

7. Document Each Rule in the Register

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).

Firewall Rule Examples

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 nameSourceDestinationServiceActionWhy
ALLOW-INET-TO-WEB-443Any (internet)Public web servertcp/443AllowPublic website; any source is expected here
ALLOW-WEB-DMZ-TO-APP-8443Web serverApp servertcp/8443AllowWeb tier calls the application tier only
ALLOW-APP-TO-DB-5432App server subnetDatabase servertcp/5432AllowOnly the app talks to the database
ALLOW-MGMT-TO-FW-SSHManagement subnetFirewall management addresstcp/22AllowAdmins manage from the jump host only
ALLOW-USERS-TO-DNSUser networksInternal DNS serversudp/53, tcp/53AllowUsers resolve names through company DNS
TEMP-VENDOR-TO-SRV-3389Vendor VPN poolOne servertcp/3389AllowTemporary, end date in the comment and the register
DENY-GUEST-TO-INTERNALGuest Wi-FiInternal networksAnyDenyGuests reach the internet only
DENY-ALL-LOGAnyAnyAnyDenyLast 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.

What the Policy Says, Section by Section

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.

SectionWhat it sets
1. PurposeWhy the policy exists: only traffic with a known business need passes, and every rule can be traced to an owner and an approval
2. ScopeNetwork firewalls, VPN gateways, cloud security groups, host firewalls, and everyone who requests, approves or makes changes
3. RolesFirewall owner, security lead, rule owner, change approver, IT team for endpoints, internal audit
4.1 Default denyBlock what is not allowed, inbound and outbound; a logged deny-all rule at the end
4.2 Least privilegeSpecific sources, destinations and ports; no any-any; any source only for public services; insecure services only by exception
4.3 DocumentationThe fields every rule records, and rule IDs in the firewall's comments
4.4 NamingACTION-SOURCE-DESTINATION-SERVICE, TEMP- prefix for temporary rules
4.5 OrderingSpecific above general, labelled sections, a shadowing check before every new rule
4.6 Management accessManagement network only, named accounts with MFA, role-based admin rights, backups before changes
4.7 LoggingWhat is logged, where logs go, how long they are kept, which events raise alerts
4.8 Change controlRequest, check, approve, test, record; emergency changes approved afterwards
4.9 Temporary rulesEnd date of no more than 90 days, removal on that date
4.10 Review cadenceWhole ruleset every six months, sensitive zones every three months, signed off
4.11 ExceptionsWritten, approved by security, with compensating controls and an end date
4.12 EnforcementChanges outside the process are reversed or brought in
5. Host firewallsOn for every profile, set centrally, users can't turn them off, status checked monthly
6 and 7. FormsFirewall 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.

How to Document Firewall Rules

Firewall consoles show what a rule does, not why it exists. The register adds the why. For each rule, record:

  • Rule ID, firewall or security group, zone and position in the ruleset
  • Rule name, source, destination, service or port, and action (allow or deny)
  • Whether the rule logs its traffic
  • Business owner: the person who confirms at each review that the rule is still needed
  • Justification: what stops working if the rule is removed
  • Change ticket, date added and, for temporary rules, the expiry date
  • Date last reviewed and the hit count at that review

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.

How to Review Firewall Rules

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.

What a firewall rule review looks for: unused, shadowed, overly broad, expired and unowned rules
What a firewall rule review looks for: unused, shadowed, overly broad, expired and unowned rules
CheckWhat it meansHow to handle it
Unused rulesNo hits over the review windowCheck 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 rulesAn earlier rule already matches all the traffic, so the rule never firesUse 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 rulesAny-any rules, any service, large subnets where one host would doNarrow them to the traffic the logs show, then confirm with the owner.
Expired temporary rulesPast their end date and still in placeRemove them, and record them as findings so the next review can see the process slipped.
Rules with no owner or reasonNobody can say why the rule existsAsk the teams that use the destination. If nobody claims it, disable it for a short period before removing it.
Insecure servicesTelnet, FTP, SMBv1 and similar still allowedRemove them, or approve an exception with compensating controls and an end date.

How Often to Review

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.

A Firewall Rule Review Template

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.

Host Firewalls on Laptops, Desktops and Servers

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:

  • Host firewalls are turned on for every network profile on company laptops, desktops and servers (Microsoft Defender Firewall on Windows, the application firewall on macOS, and ufw or firewalld on Linux).
  • Host firewall settings are set by central policy through the device management tool, not by hand on each device. Users cannot turn the firewall off.
  • Inbound connections are blocked by default. Allowed inbound apps and ports are listed per device group, with a reason, like any other rule.
  • On laptops that leave the office, the public network profile is the strictest one.
  • IT checks host firewall status across devices at least monthly and follows up on any device that reports its firewall turned off.

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.

Frameworks That Ask for a Firewall Policy

Most security frameworks expect written firewall rules, controlled changes and regular reviews, in general terms:

FrameworkWhere firewall rules fit
NIST SP 800-41 Rev. 1Guidelines 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. 5SC-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.1Control 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.1Requirement 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 A8.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.

What's in the Download

The firewall configuration policy PDF: cover, the policy standards and the rule request form
The firewall configuration policy PDF: cover, the policy standards and the rule request form
  • Word policy (Firewall-Configuration-Policy-trio.so.docx): the firewall configuration policy with purpose, scope, roles, twelve standards and a host firewall section, plus a fillable rule request form and a review sign-off page with tick boxes and date pickers.
  • PDF (Firewall-Configuration-Policy-trio.so.pdf): the same policy and forms, ready to print and sign, with the example rules and planning steps.
  • Excel rule register (Firewall-Rule-Register-trio.so.xlsx): a rule register with any-any, owner, expiry, review and unused-rule flags, a traffic-flow planning sheet, a review log, a filled-in example for a made-up company, a dashboard per firewall and sources. Formulas only, no macros.
The workbook's Example tab: a made-up company's firewall rules with their flags
The workbook's Example tab: a made-up company's firewall rules with their flags

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.

Where trio.so Fits

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:

  • Firewall policies for the built-in firewall on Windows, macOS and Linux: Microsoft Defender Firewall on Windows (on or off per domain, private and public profile, default inbound and outbound actions, and allow or block rules by direction, protocol, port, address or app), the application firewall on macOS (block all incoming connections, stealth mode, per-app rules) and ufw or firewalld on Linux (default inbound deny, allowed services and ports, logging of denied packets).
  • Per-device policy status, so you can see on which devices the firewall policy applied, failed or is still pending.
  • A high-severity alert when a managed device reports its firewall turned off.
  • A device inventory with each device's installed apps on Windows, macOS, iOS and Android, so you know which apps may need an inbound rule.
  • Patch and vulnerability findings with CVE severity, CVSS, EPSS and CISA KEV for each device, for the endpoints the firewall protects.
  • Built-in and custom console roles, so only the right people can change device firewall policies.
  • Wi-Fi policies that set WPA2 or WPA3 on Windows and Apple devices.
  • Compliance evidence export (Patch Audit Trail and Insights evidence packages) for auditors.

See how policy management and patch management work. Plans start at $5 per device.

Start free trial Book a demo

14-day free trial. No credit card required.

Related Templates

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.

Ready-to-use Templates

Must-have Template Toolkit for IT Admins

Explore All
Template Toolkit

Set the firewall on every managed computer

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.

Start free trial

Frequently Asked Questions (FAQ)

Have questions? We've got answers. This section covers some of the most commonly asked questions related to this topic.

Its purpose and scope, roles, and standards for default deny, least-privilege rules, rule documentation, naming, ordering, management access, logging, change control, temporary rules, review cadence, exceptions and enforcement. Add a section for host firewalls on laptops, desktops and servers, a rule request form and a review sign-off page.

List every firewall and security group, map the traffic flows each business service needs (source, destination, port, direction and owner), start from default deny, and write one narrow allow rule per approved flow. Name and order the rules so a reader can follow them, run each one through change control, and record it in a rule register.

A policy where the firewall blocks all traffic that a rule does not expressly allow, inbound and outbound. You then add allow rules only for the flows the business needs. NIST SP 800-41 recommends deny by default as safer than allowing everything that is not forbidden. The last rule in the ruleset is usually an explicit deny-all rule that logs what it drops.

At least every six months, and after major network changes. Rules protecting sensitive zones are often reviewed every three months. PCI DSS v4.0.1 requirement 1.2.7 asks for network security control configurations to be reviewed at least once every six months.

A rule that never matches because an earlier rule in the list already matches all of its traffic. A shadowed allow rule is clutter. A shadowed deny rule is a gap, because traffic you meant to block is allowed by the rule above it. Most firewalls have a rule analysis or optimizer tool that lists shadowed rules.

Keep a rule register with each rule's ID, firewall, zone, source, destination, service, action, logging, business owner, justification, change ticket, date added, expiry date and last review date. Put the rule ID and ticket in the firewall's own comment field so the device and the register match.

A network security policy covers the whole network: architecture, segmentation, remote access, wireless and monitoring. A firewall configuration policy goes into detail on one control, the firewall rules: how they are planned, written, changed and reviewed. Many organizations keep both, with the firewall policy sitting under the network security policy.

Related

From the blog

The related industry news, interviews, technologies, and resources.