Migrating from pfSense or OPNsense
The FreeSense installer can import the basic configuration from an existing pfSense® CE or OPNsense® firewall, so you don’t have to rebuild everything by hand.
What gets imported
Section titled “What gets imported”| pfSense CE | OPNsense | |
|---|---|---|
| System (hostname, domain, DNS, time zone) | ✅ | ✅ |
| Interface assignments + addresses | ✅ | ✅ |
| VLANs, DHCP, gateways, static routes | ✅ | ✅ |
| Firewall rules / NAT | ✅ | ⚠️ not imported |
| Users, certificates | ✅ | ⚠️ not imported |
| Packages / plugins | ❌ | ❌ |
- pfSense CE is a high-fidelity import — FreeSense is a rebuild of pfSense CE, so the configuration schema is identical. Everything except packages carries over.
- OPNsense is a basic, best-effort import. OPNsense’s configuration diverged from the shared lineage, so FreeSense imports only the parts that are still compatible (interfaces, system basics, DHCP, gateways, routes, VLANs). Firewall rules, NAT, VPN, certificates and OPNsense-specific settings are intentionally skipped — importing them blindly could lock you out. Re-create those after the first boot.
Before you start
Section titled “Before you start”- On your existing firewall, export the configuration:
- pfSense: Diagnostics → Backup & Restore → Download configuration as XML.
- OPNsense: System → Configuration → Backups → Download.
- Copy the resulting
config.xmlonto a USB stick. Put it in the root of the stick, or in aconf/folder (config.xmlorconf/config.xml). FAT or UFS formatted sticks both work. - Do not encrypt the backup (encrypted pfSense backups aren’t supported by the importer).
Import during installation
Section titled “Import during installation”- Boot the FreeSense installer.
- At the welcome menu, choose Import config.
- Pick pfSense or OPNsense.
- Insert the USB stick and confirm — the installer scans for
config.xml, converts it, and stages it for the install. - Choose Install and complete the installation as normal. The imported configuration is applied to the new system automatically.
After the first boot
Section titled “After the first boot”- Log in to the web GUI (
https://192.168.1.1,admin/freesense— change the password immediately). - Check Interfaces — confirm WAN/LAN assignments and addresses.
- Check System → General — hostname, domain, DNS.
- Re-add any packages you need (System → Package Manager).
- OPNsense migrants: re-create your firewall rules, NAT, and VPNs — these were not imported.
Troubleshooting
Section titled “Troubleshooting”- “Not a valid pfSense/OPNsense config” — the file’s root element didn’t match the brand you picked. Make sure you downloaded the right backup and selected the matching brand.
- No
config.xmlfound — check the file is named exactlyconfig.xmland is in the stick’s root or aconf/folder, and that the stick is FAT or UFS formatted.