KORTHVEILSecurity firewall
Guides

Import from another firewall: OPNsense, FortiGate, SonicWall, UniFi, MikroTik, Cisco ASA and Sophos UTM

Download as PDF All guides

Bring another firewall's configuration over to Korthveil: its address and service objects, rules, NAT, static routes, DHCP reservations and DNS records. Give Korthveil the old firewall's backup file, or let it sign in to the old firewall and read the configuration itself. Everything arrives as pending changes: nothing applies until you review it and press Commit.

Where: System › Backup & restore › Import from another firewall. pfSense is the first choice there; it opens its own importer, with the extra steps a pfSense configuration needs (from 1.5.3 there is no separate pfSense menu item).

The pfSense importer: Import from another firewall: pfSense, with Other firewalls to go back to the list
The pfSense importer: Import from another firewall: pfSense, with Other firewalls to go back to the list
Choose the firewall: each one shows how far its importer has been tested
Choose the firewall: each one shows how far its importer has been tested

Three things to know first:

  • Nothing is applied by the import. It fills the pending changes; you review them and commit.
  • Passwords and keys are never imported. VPN tunnels, users, certificates and passwords stay behind; the report lists them so you can set them up on Korthveil.
  • Every importer says how far it has been tested. Firewall makers change their formats with updates, so read the report after each import.

How far each importer has been tested

Firewall Backup file Signing in Level
pfSense config.xml — Proven with a real export
OPNsense 24.x to 26.x config.xml (also when encrypted with a backup password) API key and secret Built from the vendor's documentation
FortiGate (FortiOS 6.4 to 8.0) the configuration backup, without encryption REST API token (read-only) Built from the vendor's documentation
SonicWall (SonicOS 6.5, 7, 8) the settings export .exp SonicOS API, administrator Built from public documentation (SonicWall publishes no specification of .exp)
UniFi Network .unf or .unifi backup API key, or a local administrator Built from the vendor's documentation
MikroTik RouterOS 6 and 7 /export text (.rsc) SSH Built from the vendor's documentation
Cisco ASA 9.x show running-config as text SSH (with the enable password if needed) Built from the vendor's documentation
Sophos UTM 9 unencrypted backup .abf RESTful API token Built from public documentation (Sophos publishes no backup specification)

Proven with a real export means a real customer's or the owner's file went through it. Built from documentation means it was built and tested against the formats the maker documents (or, where the maker documents none, the ones public tools document). The level rises as real files go through. If yours does not come over completely, see Send a backup to Korra Korthveil Specialists below.

Step 1: Choose the firewall and give it the configuration

Press the firewall's card. Then choose From a backup file or Sign in to the ….

From a backup file

The page says where that firewall makes its backup. For example, on a FortiGate: System › Configuration › Backup, with Encryption off.

The FortiGate's file: where to make it, and the file box
The FortiGate's file: where to make it, and the file box
  • OPNsense: if you set a password on the backup, type it in Backup password. It is used once to open the file and never kept.
  • FortiGate with several virtual domains (VDOMs), UniFi with several sites: type the one to read in Virtual domain or Site. Import each one on its own.
  • Files that cannot be read are named on the page with what to do instead: encrypted FortiGate and Sophos backups, MikroTik .backup files, and OPNsense backups encrypted before 21.7.

The file is kept in this firewall's memory for this import only (at most 30 minutes), for your account only, and never written to disk.

By signing in to the old firewall

Type its address and what it signs in with. The page says how to make that on the old firewall, for example an API key on OPNsense or a read-only REST API administrator on a FortiGate.

Signing in to an OPNsense with its API key and secret
Signing in to an OPNsense with its API key and secret

Press Connect. Korthveil first reads only the device's certificate (HTTPS) or SSH host key, and shows its fingerprint. Nothing else is sent yet, not even the user name.

Is this your OPNsense? Compare the fingerprint before you go on
Is this your OPNsense? Compare the fingerprint before you go on

Compare the fingerprint with what the old firewall shows on its own pages. If it matches, press It matches: sign in. Korthveil then signs in, pinned to that fingerprint, and reads the configuration once. If it does not match, press It does not match and find out why: something may be between you and the firewall.

  • What you type is used for this one sign-in and never stored, logged or written to the audit log. The audit log records the device's address, the user name and the fingerprint.
  • A read-only account is enough for most firewalls. Remove it after the move.
  • Korthveil connects with TLS 1.2 or newer. A device that offers only older TLS is refused: use its backup file instead.

Step 2: Map the interfaces

Each of the old firewall's interfaces (or UniFi networks) gets one of this firewall's interfaces. Where a Korthveil interface is on the same network, it is already suggested (same network); the old firewall's internet interface is suggested as yours.

The interfaces: the old firewall's on the left, yours on the right
The interfaces: the old firewall's on the left, yours on the right
  • Anything on an interface you leave out is not imported: its rules, NAT, reservations.
  • Zones come along by their interfaces: the old firewall's LAN zone becomes the zone your mapped LAN interface is in. Where your zone holds more interfaces, the rule is limited to the mapped ones.

Step 3: Choose what to import, and import

Tick the sections. Rules and NAT bring the objects and schedules they use with them. Press Import as pending changes.

The report: what was imported, and every item that was left out or changed, with why
The report: what was imported, and every item that was left out or changed, with why

The report lists everything that was not imported, or imported with a change, with the reason. Some things to know about it:

  • A block rule that was left out says so plainly: traffic it blocked may now match a rule after it. Check those rules before committing.
  • A rule whose schedule could not come along is imported disabled, so it does not apply all the time.
  • A rule that sent its traffic to a VPN or gateway (policy routing) is imported disabled, so its traffic cannot leave through the normal internet line. Route it under Network › Routing & WAN › Policy routing, then enable it.
  • Firewalls that allow by default. MikroTik and UniFi let through what no rule blocks; Korthveil blocks what no rule allows. Where the old firewall's own rules show what passed (the standard "drop from WAN" rule, UniFi's defaults), the importer adds that as an explicit rule and says so. Otherwise it adds nothing on a guess.
  • ASA security levels. Traffic from a higher to a lower security level, which the ASA allows without an access list, becomes an explicit rule.
  • Access to the firewall itself (input rules, management rules) is not imported: on Korthveil it is set per zone (Network › Interfaces, zones & routes) and per service.

Then press Review the pending changes, read them, and commit with the Commit button at the top.

Send a backup to Korra Korthveil Specialists

Firewall makers keep changing how their configurations are stored with each update. If the import misses something, or your firewall runs a newer version than we have tested, send the backup to Korra Korthveil Specialists and they make sure your configuration goes in properly. Without a sample backup from your firewall, critical information might be missing.

Send this backup: exactly what is sent, and the consent box
Send this backup: exactly what is sent, and the consent box
  • From the importer: press Send this backup to Korra Korthveil Specialists. The panel lists exactly what is sent: the file (or what signing in read), the import's report, and your note. Tick the box and press Send. It goes to korthveil.com under this firewall's registration, into Your account › Firewall backups.
  • On korthveil.com: Your account › Firewall backups › Send a backup.
  • By message: the contact form at korthveil.com/p/contact (choose Support).

How it is kept:

  • Sent encrypted (HTTPS) and kept encrypted, each file with its own key.
  • Only you and the specialists can open it; every upload, download and deletion is recorded.
  • Our support team is told by an email that holds a link, never the file.
  • It is deleted 90 days after your import is marked finished (or 90 days after you send it, if no one marks it), and you can delete it yourself at any time.
  • A backup holds your passwords and keys: export it without them if your firewall offers that, and change any password that was in it after the move.

A firewall that is not registered cannot send from the importer: use korthveil.com or email instead.

Questions

Can I import twice? Yes. Objects with the same names are replaced; rules, routes and NAT are added again after the existing ones, with new names.

Are VPN tunnels imported? No: their keys stay on the old firewall. Set them up under VPN. For WireGuard, import each tunnel's file under VPN › WireGuard › Import: a key used by two running firewalls drops both.

The old firewall runs a version newer than the table says. Try it: unknown fields are reported, not guessed. If something is missing, send the backup to Korra Korthveil Specialists.

Download as PDF All guides