At first glance FortiOS and PAN-OS look alike. Both use zone-style policies, first match, and an implicit deny. The differences are in the defaults and in NAT. Those are the parts a line-by-line translation gets wrong without any error. This page covers the mapping, the four places it breaks, and what still has to be rebuilt by hand.

If you were going to use Expedition: Palo Alto ended support for it in January 2025. The supported replacement for config migration is a paid professional services engagement. The full picture is here.

The concept mapping

FortiOS PAN-OS Where it gets awkward
Interface or system zone Zone In PAN-OS every Layer 3 interface belongs to exactly one zone. Grouping interfaces changes what is allowed. See trap 1.
Firewall policy (srcintf / dstintf) Security rule (from / to zone) Close match. NAT settings on the policy have to come out into separate rules. See trap 2.
Implicit deny (policy 0) interzone-default deny, intrazone-default allow Not the same default. See trap 1.
firewall address / addrgrp Address / address group Subnets, ranges and FQDNs convert. Geography addresses become region objects. Wildcard FQDNs have no address-object equivalent.
firewall service custom / group Service / service group PAN-OS service objects cover TCP, UDP and SCTP only. ICMP moves to App-ID. See trap 3.
IP pool + set nat enable Source NAT rule Comes out of the security policy into the NAT rulebase.
VIP Destination NAT rule The security rule then matches the pre-NAT address. See trap 2.
VDOMs Virtual systems, separate firewalls, or Panorama device groups Multi-vsys depends on platform and licence. Decide the target layout first.

Trap 1 — PAN-OS allows traffic inside a zone

On a FortiGate, traffic between two interfaces in the same zone is blocked unless intra-zone traffic is explicitly allowed. Traffic that enters and leaves on the same interface also needs a policy.

On PAN-OS, the predefined intrazone-default rule allows traffic between interfaces in the same zone.

So suppose a migration tidies up by merging FortiGate interfaces into one PAN-OS zone, for example several server VLANs into dmz. It has just allowed every path between them. Nothing in the policy says so, and nothing logs it by default.

What to do. Keep one zone per interface wherever the FortiGate was enforcing segmentation between them. Or override intrazone-default to deny, with logging, and write explicit rules for the intra-zone flows you actually need.

Trap 2 — NAT splits, and the destination address flips

A FortiGate policy can carry its own NAT: set nat enable with an IP pool for source NAT, and a VIP as the destination for inbound NAT. PAN-OS keeps NAT in a separate rulebase. One FortiGate policy can become up to three PAN-OS rules: a security rule, a source NAT rule and a destination NAT rule.

Then comes the rule that catches everyone. A PAN-OS security rule matches the pre-NAT address and the post-NAT zone.

Source of the policy Destination address in the FortiGate policy What the PAN-OS security rule needs
FortiGate, per-policy NAT the VIP (public address) the public address — carries over
FortiGate, central NAT the mapped (internal) address the public address — must be rewritten

The destination NAT rule has its own twist. Its destination zone is the zone of the pre-NAT address. That is usually the same untrust zone the traffic arrived on, not the internal zone. Getting that wrong is one of the most common reasons inbound NAT on a new PAN-OS firewall matches nothing.

Convert NAT last, after zones, objects and security rules are settled. Then check each inbound NAT by hand against the original.

Trap 3 — services, ICMP and "ALL"

FortiOS service objects can describe ICMP and IP protocols. PAN-OS service objects cannot. On PAN-OS, ICMP and ping are applications. So a rule that allowed PING on the FortiGate becomes a rule with the ping or icmp application on PAN-OS.

The same thinking applies to App-ID in general. A faithful port-based migration is the safe first step. Moving rules to App-ID (and from any to application-default) is a second project, done in batches with traffic data from the new firewall. Doing both in one change window means that when something breaks, you cannot tell which change broke it.

Trap 4 — what does not convert at all

Plan hours for these regardless of tooling:

  • Security profiles — antivirus, IPS, web filter and application control profiles have different models on each side. Rebuild them.
  • Internet Service Database objects — no direct PAN-OS equivalent. Use App-ID, predefined objects or external dynamic lists.
  • VPN — FortiGate route-based IPsec is conceptually close to PAN-OS (IKE gateway, IPsec tunnel, tunnel interface), but it is still rebuilt. Remote-access VPN is a separate project.
  • SD-WAN rules, dynamic routing and HA — rebuilt by hand.
  • User identity — FSSO and authentication policy become User-ID. Different design.

The dangerous failure is not "this did not convert". It is "this did not convert and nobody was told". Keep an explicit list, with the source line each item came from.

A converter that runs on your machine

RuleForge parses a FortiGate CLI configuration into a vendor-neutral model and generates PAN-OS set commands, or a Panorama device-group variant. It runs offline as a single Go binary. Nothing is uploaded anywhere, because a firewall configuration has no business leaving your network, and that includes sending it to me.

  1. Analyze — full inventory of interfaces, zones, objects, policies, NAT and routes. VPN, certificates, dynamic routing, HA, application and URL features are captured with their source lines. They go to manual review instead of being dropped.
  2. Map — it proposes the zone map with PAN-OS-legal names. You edit and approve it. That is the moment to make the trap 1 decision.
  3. Convert — object names are preserved. Literals are wrapped in collision-safe helper objects. Every rename is listed.
  4. Review — per-element outcomes and before/after counts. PAN-OS output is re-parsed and compared against the model by count and by value.

Every job produces a Conversion Process Report: one row per element, with its outcome. See a real one from a sample job. That job is ASA to PAN-OS, and the report format is the same for every direction.

What it does not do

  • It does not know which flows the old firewall actually carried. Check the new policy against a traffic sample before cut-over.
  • It does not rebuild security profiles, VPN, SD-WAN or HA. It reports them.
  • The free edition converts up to 150 rules per job and is single-tenant. VDOM conversion is in the paid edition.
  • A converted config is the starting point for a change window. Do not paste it into production unreviewed.

Run it

Grab the tarball and SHA256SUMS from the releases page, then:

sha256sum -c SHA256SUMS tar xzf ruleforge-free-*-linux-amd64.tar.gz ./ruleforge # dashboard on http://127.0.0.1:8428 

The same tool converts between any two of Cisco ASA, Cisco FTD, PAN-OS, FortiGate and Check Point. Paid editions are on Whop. Licensing is offline Ed25519, and nothing phones home in either edition. Want the result reviewed before cut-over? See the Firewall Migration Config Review (fixed price, async).

Behaviour can change between FortiOS and PAN-OS releases. Verify every point here in a lab on your target version before the change window. If your experience differs, open an issue.

Originally published at nizartuanku.github.io.