Back to Admin Workflows

Audit FortiGate Firewall Policies and Back Up Configuration with PowerShell

Create and reorder policies, back up configuration on a schedule, check HA sync, review traffic logs, and manage security profiles with one repeatable FortiGate workflow.

FortiGate firewalls sit at the edge of the network, and their policy base is where security is won or lost. Over time, policies accumulate, ordering drifts, and unused rules linger — each one a potential gap.

Configuration backups are just as critical. When a firewall fails or a change goes wrong, a recent, verified backup is the difference between a quick restore and an extended outage.

A repeatable PowerShell workflow keeps FortiGate policies clean and configuration recoverable. PSForge helps you assemble it from ready-made Fortinet tasks.

Why firewall policy bases get messy

Firewall policies are added reactively to unblock a service or a user, and they rarely get removed. Policy order matters on FortiGate, so as rules pile up, an overly broad rule near the top can quietly shadow more specific ones below.

Backups and HA status are often assumed rather than verified. A firewall whose configuration was never backed up, or whose HA pair has fallen out of sync, is a single point of failure waiting to happen.

What an audit and backup workflow looks like

A solid workflow reviews and reorders firewall policies so the most specific rules take precedence, and edits or tightens policies that have grown too broad. It backs up configuration and schedules recurring backups.

It checks HA sync status so the failover pair is ready, reviews traffic logs to validate what the rules are actually doing, and manages security profiles (AV, IPS, web filter) so inspection stays current.

Order matters on FortiGate Review policy order regularly — a broad rule placed above specific ones can unintentionally allow or block traffic. Reorder so the most specific policies evaluate first.

How PSForge helps

PSForge provides the Fortinet building blocks — policy creation and reordering, configuration backup, HA checks, traffic logs, and security profiles — so you can assemble one repeatable audit and backup workflow.

Generate the PowerShell, schedule the backups, and run the policy audit on a regular cadence.

  • A clean, well-ordered policy base
  • Verified, scheduled configuration backups
  • Confirmed HA readiness
  • Current security inspection profiles

Example policy audit workflow

  1. Review and edit overly broad firewall policies
  2. Reorder firewall policies so specific rules win
  3. Review traffic logs to validate rule behavior
  4. Manage security profiles (AV, IPS, web filter)

Example backup and resilience workflow

  1. Back up the FortiGate configuration
  2. Schedule recurring configuration backups
  3. Check HA sync status on the failover pair

Final thoughts

Firewall hygiene and recoverability are continuous responsibilities, which makes them a natural fit for a repeatable workflow.

Build it once in PSForge and run the same audit and backup routine across every FortiGate you manage.

Related guides