Request an exact quote
Firewalls migration path

From Palo Alto Networks to OPNsense

Replacing Palo Alto with OPNsense, where an open firewall fits (and where App-ID/WildFire don't translate), rebuilding the rulebase and VPNs, sizing with TLS inspection in mind, and per-site cutover.

Effort
High
Est. timeline
~18 wks
OPNsense model
Free (open source)
Open source
Yes
▶ Model your savings in the interactive calculator

Palo Alto stacks per-appliance costs with per-subscription bundles (Threat Prevention, URL Filtering, WildFire), premium NGFW hardware, Panorama licensing, and steep support renewals. OPNsense (open-source, on commodity hardware) provides stateful firewalling, NAT, VPN, and Suricata-based IDS/IPS without the subscription tax, a strong fit for edge, branch, and internal segmentation. But be clear-eyed about the NGFW features that don’t have an open one-to-one.

Where OPNsense fits, and where it doesn’t

OPNsense handles firewall rules, NAT, IPsec/OpenVPN/WireGuard VPNs, and Suricata IDS/IPS very well. What does not translate cleanly from Palo Alto: App-ID (deep application identification), WildFire (cloud sandboxing), advanced User-ID integration, and Panorama-style central management at scale. Suricata signatures provide IPS, but they are not a drop-in for App-ID policy. If your security model leans heavily on App-ID/WildFire, scope that gap honestly, OPNsense is a great fit for edge/segmentation, less so as a feature-for-feature NGFW replacement in a high-assurance core.

What App-ID and WildFire actually cost you to replace

The gap is worth naming precisely, because it drives whether this migration is appropriate for a given segment. App-ID classifies traffic by application regardless of port, and much of a mature Palo Alto rulebase is written in those terms: permit this application, deny that one, independent of the Layer 4 port it rides on. OPNsense rules match on interface, address, and port, so an App-ID rule has to be re-expressed as address and port logic, and where an application is truly port-agile, some of that policy cannot be reproduced at the same fidelity. WildFire’s cloud sandboxing of unknown files has no open equivalent at all; Suricata inspects against known signatures, it does not detonate unknown samples. User-ID’s identity-to-IP mapping likewise has no direct analog. So inventory which rules actually depend on these features. In many edge and segmentation deployments the answer is “few,” and those move cleanly. Where a segment leans on App-ID or WildFire for its control, keep Palo Alto there.

Size with TLS inspection in mind

The classic firewall-migration mistake is sizing on raw firewall throughput. Size on threat-protection (IPS) throughput, and remember TLS inspection can cut effective throughput by 50–70%. Account for IPsec VPN throughput, concurrent sessions, and connections/sec, and provision hardware with that headroom. Under-sizing is how these projects fail.

The path from inventory to cutover

  1. Inventory the security policy, NAT rules, address/service objects, and VPN configuration; document IDS/IPS profiles and the Palo Alto features (App-ID, URL, WildFire, User-ID) actually in use; note HA and SIEM/logging integrations.
  2. Deploy OPNsense in HA (CARP), and recreate rules, aliases, and NAT. Object-heavy Palo Alto policy maps to OPNsense aliases and rules, rebuild rather than import.
  3. Migrate VPNs, IPsec site-to-site tunnels and remote-access (OpenVPN/WireGuard) users, and enable Suricata IDS/IPS with the relevant rulesets.
  4. Wire logging to your SIEM and confirm parity of visibility.
  5. Pilot at a low-risk site, validate an allow/deny matrix and VPN connectivity live, then roll out site by site with rollback ready.

Rebuilding the rulebase by hand

There is no tool that converts a Palo Alto policy package into an OPNsense ruleset, so treat the export as documentation, not something you feed in. Pull the security policy, NAT rules, and object groups first; that is your source of truth for the rebuild. Recreate the objects before any rules: address objects and groups become aliases under Firewall, Aliases, and nesting works, so a group-of-groups in Palo Alto maps to nested aliases. Building aliases first means every rule references a name rather than a raw address, which keeps the ruleset readable and lets you re-point a whole set of rules by editing one alias later.

Then translate rules in order. Palo Alto evaluates its security policy top-down and so does OPNsense per interface, so preserve relative order carefully: a deny that sat above a broad permit must keep that position, or the rebuild quietly becomes more permissive than the original. Map each Palo Alto rule onto the correct OPNsense interface, and make any implied cleanup or drop-all rule explicit, since OPNsense is default-deny inbound but you want that intent visible and logged. Handle NAT as its own pass rather than inline with the security rules: recreate source (outbound) NAT and destination NAT (port forwards) under the NAT sections, and review any auto-created pass rule rather than trusting it blind.

Moving the VPNs and standing up Suricata

Rebuild IPsec site-to-site tunnels under VPN, IPsec with phase-1 and phase-2 parameters matched to each peer exactly; a mismatched proposal is the usual cause of a tunnel that negotiates and then drops. Move remote-access users off the Palo Alto client onto OpenVPN or, where you can, WireGuard, which is smaller and faster to stand up. For the inspection layer you were paying subscription for, enable Suricata under Services, Intrusion Detection. Start in IDS (alert-only) mode on the WAN and any inter-segment paths, tune out the false positives from your chosen ruleset, then switch to IPS blocking once the noise is gone. Blocking before you have tuned is how a migration takes down legitimate traffic on day one.

Pilot one site, keep the Palo Alto as fallback

Never replace every firewall at once. Pilot one site, monitor logs and IPS for anomalies during hypercare, then expand site by site. Roll back by re-pointing traffic to the Palo Alto firewall, keep it racked and configured until each site validates.

What has to pass before you retire the incumbent

The acceptance bar is rule/NAT correctness (allow and deny), VPN connectivity (site-to-site and remote), IDS/IPS detection and throughput, and an HA failover test. Confirm the deny rules actually block and that throughput holds with inspection enabled before retiring the incumbent.

So, is it worth it?

Palo Alto → OPNsense removes per-appliance and per-subscription cost for edge and segmentation firewalling, in exchange for App-ID/WildFire-class features you may need to replace or live without. Size for IPS+TLS throughput, rebuild the rulebase and VPNs, and cut over site by site with the Palo Alto as fallback. Model your per-firewall savings in the calculator above, and treat them as illustrative until you confirm throughput and feature requirements.

Tooling & automation for this path

Export security policy and NAT rules; recreate as OPNsense rules/aliases; migrate VPN and IDS/IPS (Suricata); pilot at a small site; cut over with rollback ready.

Primary references: official OPNsense documentation ↗ and the Palo Alto Networks documentation ↗ , always verify version-specific behavior against them before you migrate.

Frequently asked questions

Is there an automated tool to import a Palo Alto policy into OPNsense?

No. There is no reliable importer that ingests a Palo Alto security policy and emits an OPNsense ruleset, so the rulebase has to be rebuilt by hand. Export the security policy, NAT rules, and object groups as your source of truth, then recreate address and service objects as aliases and translate each rule onto the correct OPNsense interface. The rebuild is slower than an import would be, but it forces you to review rules that only existed for historical reasons.

How do I migrate Palo Alto VPNs and IPS to OPNsense?

Rebuild IPsec site-to-site tunnels in OPNsense with phase-1 and phase-2 parameters matching each peer exactly, and move remote-access users to OpenVPN or WireGuard. For the threat-prevention function, enable Suricata under Services, Intrusion Detection and load the relevant rulesets. Suricata gives you signature-based IPS, but it is not a drop-in for App-ID-driven policy, so validate detection on your real traffic before you retire the Palo Alto.

Which Palo Alto NGFW features have no OPNsense equivalent?

App-ID application identification, WildFire cloud sandboxing, deep User-ID identity mapping, and Panorama-style central management at scale do not have a one-for-one open replacement. Suricata covers signature IPS and web-proxy plugins cover some URL filtering, but neither reproduces App-ID policy. If your security model leans on those features, treat OPNsense as an edge and segmentation firewall rather than a feature-for-feature NGFW swap.

Should I pilot at one site before replacing every Palo Alto firewall?

Yes. Pilot at a single low-risk site, validate an allow and deny matrix plus VPN connectivity live, and watch the firewall and IPS logs through a hypercare window before expanding. Keep the Palo Alto racked and configured so rollback is just re-pointing traffic. Only cut over the next site once the pilot has held under real load with inspection enabled.

Model your 3-year cost

Pre-filled for Palo Alto Networks → OPNsense; adjust every figure with your own numbers. Estimates are illustrative, not vendor quotes, see our methodology.

Sized at 30 firewall instances, cost is computed on this.

Recommended for your requirements: Recommended class: 1U mid-range (2–20 Gbps), size to 10 Gbps NGFW (threat-protection) throughput and 3 Gbps TLS inspection (decryption reduces effective throughput ~50–70%), 2 Gbps IPSec VPN, ~2M concurrent sessions. Require: IPS, application control, URL filtering, anti-malware/sandboxing, and IPSec + SSL VPN.

Stay on Palo Alto Networks (3yr)
$450,000
Move to OPNsense (3yr + migration)
$85,500
Projected savings
$364,500 (81%)
Payback period
5.9 mo
Build a decision report from these numbers:

Illustrative, editable figures, not vendor pricing (defaults reviewed May 2026).

Request a vendor-accurate OPNsense quote

A guided builder that turns your estimates into a requirements report (RFQ) you can send to a vendor, partner, or distributor for a binding quote, then feed the real prices back into the calculator above. How our estimates work.

  1. 1Size it
  2. 2Requirements
  3. 3Your details
  4. 4Channels & export

How big is your Palo Alto Networks estate?

Count gateways, including HA pairs. Not sure? Enter rough numbers, the distributor confirms exact counts later.

30 firewall instances
Default mid-size assumption (30 firewall instances)