Configuration export and import
Hosts (with their group, management mode, pinned host key and desired rules), aliases and host groups can be exported to a JSON file and imported into another FireHawk server or workspace. Use it to migrate, to copy a setup between environments, or as a readable backup of the desired state.
Both directions need the config.transfer permission.
Export
Section titled “Export”- On the Hosts page (or the Aliases page), click Export.
- In Export configuration, tick the sections:
- Hosts: All hosts, one Group, or Ungrouped hosts; tick Include desired rules to export them too.
- All aliases.
- All host groups.
- Download the
firehawk-configJSON file (format version 1).
Exported hosts always bring their group and the aliases their rules and NAT rules use (including aliases those include).
What a host contains
Section titled “What a host contains”| Included | Never included |
|---|---|
| Name, address, SSH port, SSH user, auth type, key file name, tags | Passwords |
| Backend, management mode, other software patterns | Private keys and credential secrets |
| The names of its stored credential and jump host (and the group’s jump host) | |
| The pinned SSH public host key and its fingerprint | |
| Desired rules: chains, rules, policies, NAT, nftables tables (optional) |
Aliases keep their source settings, so a dynamic alias stays dynamic.
Import
Section titled “Import”- Click Import… on the Hosts or Aliases page and choose the file.
- The preview lists every host and alias as new, already exists (identical), name exists, different content or invalid (with the reason), plus warnings per host.
- For each existing name, choose Skip (default), Overwrite or Import as copy.
- Click Import N items.
The result shows how many items were created, overwritten, imported as copy, skipped or invalid.
Conflict rules
Section titled “Conflict rules”- Hosts imported as copy are named
name (2). A host cannot be overwritten by one with another firewall backend. Overwriting a host with another management mode resets its drift baseline. - Aliases imported as copy are named
name_2, and the hosts and aliases imported from the same file then use the copy. - Groups are matched by name and created when missing.
- Credentials and jump hosts are linked by name when they exist on the target server; otherwise the preview warns.
After the import
Section titled “After the import”- Hosts using a password need the password entered again.
- Hosts using a key file need the file copied into
sshkeys/on the new server. In a FireHawk with several workspaces only FireHawk admins can import such hosts. - The pinned host key is imported as the pin, so the new server trusts the same key as the old one. Hosts without one are pinned on first connection.
Limits and audit
Section titled “Limits and audit”- 8 MB per file, 2000 items per section.
- Each item is validated on its own: an invalid host or alias is reported and skipped without failing the file.
- The audit log records
config.exportandconfig.import, plus onehost.*,alias.*orgroup.*entry per imported item.
For templates, which have their own file format, see Rule templates.
