The Wild

Migrate FortiGate to Cisco Secure Firewall Rules

· 6 min read · Mammals

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Migrating firewall rules from FortiGate to Cisco Secure Firewall (formerly Firepower) involves translating policies, objects, NAT rules, and interfaces into the Cisco Firepower Management Center (FMC) or Firepower Device Manager (FDM). This guide covers a manual, step-by-step approach that works for most deployments, including using Cisco's migration tool where available. You'll need administrative access to both devices, a clear understanding of your current rule base, and a maintenance window for testing.

What You'll Need

  • Administrative credentials for the FortiGate (CLI or GUI) and the Cisco Secure Firewall (FMC or FDM).
  • Network topology diagram and interface IP addressing plan.
  • Export of the FortiGate configuration (via CLI: show full-configuration or GUI: System > Config > Backup).
  • Cisco Secure Firewall Migration Tool (optional but recommended) – available from Cisco's website, requires a Cisco account.
  • A test environment or maintenance window to validate rules before cutover.

Step-by-Step

  1. Export the FortiGate configuration. Log into the FortiGate CLI and run show full-configuration (or show firewall policy for just policies). Save the output to a text file. This gives you a complete reference for objects, addresses, services, and NAT rules.
  2. Inventory your firewall rules. Create a spreadsheet listing each policy: policy ID, source zone, destination zone, source addresses, destination addresses, services/ports, action (accept/deny), schedule, and logging settings. Also note any NAT policies (source NAT, destination NAT, or VIPs) and their associated rules.
  3. Map FortiGate zones to Cisco interfaces/zones. In FortiGate, zones are logical groups of interfaces. In Cisco Secure Firewall, you'll define security zones (e.g., Inside, Outside, DMZ) and assign physical or subinterfaces to them. Create a mapping table (e.g., FortiGate 'wan1' → Cisco 'GigabitEthernet0/0' in zone 'Outside').
  4. Recreate network objects and groups. In FMC, go to Objects > Object Management > Addresses. For each FortiGate address object or group, create a corresponding network object (host, range, or network) or group. Use the same names where possible to ease troubleshooting.
  5. Recreate service objects. FortiGate services (e.g., TCP/443) map to Cisco port objects. In FMC, under Objects > Object Management > Port, create port objects for each service. For custom services, use the 'Protocols' section to define TCP/UDP with specific ports.
  6. Build access control policies (ACPs). In FMC, navigate to Policies > Access Control. Create a new policy and add rules in the same order as your FortiGate policies (FortiGate evaluates top-down; Cisco does the same). For each rule, set the source zone, destination zone, source networks, destination networks, ports, and action (Allow or Block). Enable logging as per your original rules.
  7. Translate NAT policies. FortiGate NAT is typically configured per-policy (using 'NAT' option) or via central NAT. In Cisco, NAT is configured separately under Objects > NAT. Create source NAT (PAT) rules for outbound traffic and destination NAT (static) rules for inbound traffic, mapping to the appropriate interfaces and translated addresses.
  8. Configure interface settings. On the Cisco device, set IP addresses, security zones, and enable interfaces. Ensure that the interface MTU and speed/duplex match your FortiGate settings if they were manually configured.
  9. Deploy the configuration to the Cisco device. In FMC, click 'Deploy' and select the device. Review any warnings or errors. If using FDM, push the configuration directly from the device GUI.
  10. Test connectivity and policy enforcement. After deployment, test traffic flows: internal to external (NAT), external to internal (DNAT), and inter-zone traffic. Verify that allowed traffic passes and denied traffic is blocked, checking logs in FMC.
  11. Cut over and decommission FortiGate. Once testing is successful, repoint the default gateway of your network to the Cisco firewall. Keep the FortiGate available for rollback for at least a week, then remove it from the network.

Common Mistakes

  • Ignoring implicit deny. FortiGate has an implicit deny at the end; Cisco also has a default deny, but ensure you don't accidentally add a blanket allow rule that bypasses security.
  • Misordering rules. Cisco evaluates rules top-down, just like FortiGate, but if you place a broad allow rule before a specific deny, it will be ignored. Replicate the exact order.
  • Forgetting NAT exceptions. FortiGate often has 'no NAT' rules for internal-to-internal traffic. In Cisco, you must explicitly create NAT exemption rules or ensure NAT is not applied to those zones.
  • Overlooking interface names. Cisco uses names like 'inside' and 'outside' by default, but you may have custom names. Mismatches cause policy errors.
  • Skipping the migration tool's output review. The Cisco migration tool is helpful but not perfect; always manually verify the generated policies.

Tips

  • Use the Cisco Secure Firewall Migration Tool if you have a large rule base. It can parse FortiGate configs and generate a draft FMC policy, saving time.
  • Leverage FMC's 'Object Management' to create reusable groups; this reduces rule count and simplifies future changes.
  • Enable logging on all rules during the test phase to identify any missed traffic.
  • Use FMC's 'Rule Hit Count' feature after deployment to see which rules are actually used, then clean up unused ones.
  • Document your mapping table and keep it for future reference.

Troubleshooting

  • Traffic not passing after deployment: Check the access control policy rule order and ensure the rule's source/destination zones match the actual interface zones. Also verify NAT rules are applied to the correct interface.
  • NAT not working: In FMC, go to 'NAT' and check the 'Translated Source' or 'Translated Destination' fields. Ensure the 'Source Interface' and 'Destination Interface' are correct. Also confirm that the NAT rule is above any 'NAT Exempt' rules.
  • Policy shows 'No Logging' or no hits: In FMC, edit the rule and enable logging at the beginning and end. Check the 'Real Time' log viewer for any dropped connections.
  • Configuration deployment fails: Look at the deployment error messages in FMC. Common issues include duplicate object names, invalid IP addresses, or missing interface assignments.
  • VPN tunnels not working: If you had site-to-site VPNs on FortiGate, those are not part of firewall rules—they need separate configuration. Cisco uses IKEv2/IPsec policies; you'll need to recreate them manually.

Frequently Asked Questions

Can I use the Cisco migration tool for free?

Yes, the Cisco Secure Firewall Migration Tool is free to download from Cisco's website, but you need a valid Cisco account and a support contract for your firewall.

Will the migration tool convert everything automatically?

No, it converts basic policies and objects, but you must manually review and adjust NAT, VPN, and advanced features like application filters or SSL inspection.

How long does a typical migration take?

For a small network (under 100 rules), it can take a few hours. Larger deployments with hundreds of rules may take several days, especially if you have complex NAT.

Can I run both firewalls in parallel during migration?

Yes, it's recommended. You can put the Cisco firewall in transparent mode or use a test VLAN to validate rules before switching the default gateway.

What happens to my FortiGate VIPs (virtual IPs)?

You need to recreate them as destination NAT rules in Cisco. The migration tool may handle simple ones, but for complex port forwarding, manual configuration is required.

Do I need to reconfigure routing on the Cisco firewall?

Yes, unless you're using the same IP addresses. You'll need to set up static routes or dynamic routing (OSPF/BGP) as per your network design.