Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Is there a guide on how to migrate from pfsense to opnsense?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is there a guide on how to migrate from pfsense to opnsense? (Read 20807 times)
inorx
Newbie
Posts: 23
Karma: 0
Is there a guide on how to migrate from pfsense to opnsense?
«
on:
March 03, 2023, 08:11:04 pm »
Hi all
i'm just about to migrate an old pfsense installation with a rather complex and huge configuration which would be days of work to manually migrate.
I did a quick test with pfsense/export - opnsense/import but it failed (it corrupted the opnsense configuration, leaving the software crashing, so i had to reset it).
Also i found that i.e. for Aliases there seems to be no import option under those "parts of configuration restore" dropdown.
I read it might not be expected that the opnsense conf is compatible with the pfsense conf (correct?) and therefore it's adviced to import part after part. I'm wondering if there is something like a best practise guide on how to do this, i.e. order of parts, how do the conf files have to look lioke (pure xml? no header section? ...)? The latter would be helpful in case the import fails, so so reformating could be done manually in a text editor.
Any hint is very welcome.
Thanks for your support guys.
«
Last Edit: March 04, 2023, 12:47:21 am by inorx
»
Logged
inorx
Newbie
Posts: 23
Karma: 0
Re: Is there a guide on how to migrate from pfsense to opnsense?
«
Reply #1 on:
March 03, 2023, 11:55:47 pm »
When trying to import parts of the configuration exported from pfsense, this is the error message i get:
«
Last Edit: March 03, 2023, 11:57:37 pm by inorx
»
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Is there a guide on how to migrate from pfsense to opnsense?
«
Reply #2 on:
March 04, 2023, 12:20:23 am »
Back a few versions ago the underlying code was similar enough that a direct import was possible. That's not the case now
Logged
inorx
Newbie
Posts: 23
Karma: 0
Re: Is there a guide on how to migrate from pfsense to opnsense?
«
Reply #3 on:
March 04, 2023, 08:30:13 am »
So what procedure is considered to be the most efficient today?
Is there any information on how to covert the pfsense conf xml to the opnsense json conf?
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Is there a guide on how to migrate from pfsense to opnsense?
«
Reply #4 on:
March 04, 2023, 01:34:25 pm »
Not sure what json you are referring to. OPNsense's primary configuration file is /conf/config.xml
Logged
inorx
Newbie
Posts: 23
Karma: 0
Re: Is there a guide on how to migrate from pfsense to opnsense?
«
Reply #5 on:
March 05, 2023, 02:11:57 pm »
You're right, it's an XML file.
And as you wrote, it's not compatible with the pfsense format.
For someone not involved in the dev process and without a specification of the output format, it does not seem to be possible to write a converter script to automate i.e. rule conversion to opnsense.
So for anyone else having the same challenge as i do, after a couple of days i got two conclusions:
1) Think again if you want to move to opnsense. There sure are a couple of advantages opnsense offers, but it also comes with a couple of shortcomings in various aspects, not only regarding migration but i.e. also regarding management of DHCP clients and aliases (not automatically created), absence of automatically generated reportes or a missing content filter (no, a web proxy with URL filtering isn't a proper content filter) to mention some.
2) Read your pfsense configuration xml files into Excel or similar, get rid of all records and columns you don't need and migrate manually by copy/paste to the opnsense Web Gui. Reserve some time as the GUI doesn't really offer support for mass manipulation of records/configuration items.
Logged
skittlebrau
Newbie
Posts: 5
Karma: 0
Re: Is there a guide on how to migrate from pfsense to opnsense?
«
Reply #6 on:
January 18, 2024, 02:36:19 am »
The method I used was to spin up a VM with the same number of interfaces (virtual) and went page by page to replicate my configuration. I then exported the configuration and imported it and re-mapped the previously virtual interfaces to physical ones.
Logged
Seimus
Hero Member
Posts: 608
Karma: 59
Re: Is there a guide on how to migrate from pfsense to opnsense?
«
Reply #7 on:
January 18, 2024, 10:56:15 am »
You can read this thread, one new user already digged into it.
https://forum.opnsense.org/index.php?topic=36683.0
Also somebody on github did a script to covert the PF config into OPN, there are however some caveats
https://github.com/CitraIT/migrate_pfsense
Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.
OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G -
VM HA(SOON)
N100 - i226-V | Crucial 16G 4800 DDR5 | S 980 500G -
PROD
ludarkstar99
Newbie
Posts: 28
Karma: 6
Re: Is there a guide on how to migrate from pfsense to opnsense?
«
Reply #8 on:
September 27, 2024, 12:42:13 am »
Actually, it was moved to
https://github.com/sysadminbr/migrate_pfsense
Was made in a raw attempt to read config.xml from pfsense and submitting it to opnsense forms.
i'm working into a recent version leveraging the proper api methods.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Is there a guide on how to migrate from pfsense to opnsense?