Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
16.1 Legacy Series
»
[SOLVED] Migrate from PFsense to OPNsense
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: [SOLVED] Migrate from PFsense to OPNsense (Read 67531 times)
shade73
Newbie
Posts: 49
Karma: 3
[SOLVED] Migrate from PFsense to OPNsense
«
on:
May 31, 2016, 12:57:53 am »
Hello,
I wish to migrate 2 PFsense 2.2.6 servers in HA setup, to OPNsense 16.1 (or 16.7 if timetable will shift).
Any thoughts or guide for the best way? Is there a way to export/import config?
Thanks in advance.
«
Last Edit: August 08, 2016, 06:06:19 pm by shade73
»
Logged
netrixtardis
Newbie
Posts: 11
Karma: 2
Re: Migrate from PFsense to OPNsense
«
Reply #1 on:
May 31, 2016, 02:45:42 am »
While OPNsense and pfsense are from similar base, they are not really interchangeable like that. You should export your pfsense config only as a reference, do not try to re-import it into OPNsense
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Migrate from PFsense to OPNsense
«
Reply #2 on:
June 01, 2016, 06:26:20 pm »
You can still import individual sections and see if that works. Additional info here:
https://github.com/opnsense/core/issues/28#issuecomment-141755217
It may work, depending on your config.xml complexity. Good luck. Test in a VM.
Logged
shade73
Newbie
Posts: 49
Karma: 3
Re: Migrate from PFsense to OPNsense
«
Reply #3 on:
July 19, 2016, 05:41:36 pm »
Thanks for the input.
I'm in the middle of the migration, seems like 16.7rc2 is the only download so starting on that.
Not much could be imported from old config, so had a good cleanup - only aliases could be used, that was many lines of config I where saved from typing.
I'm using a Intel i350-T4 card and on PFsense (or the old FreeBSD) I had a buffer exhaustion in the kernel because of the load on the card with hardware offload.
I had these added to /boot/loader.conf
kern.ipc.nmbclusters="1000000"
kern.ipc.nmbjumbop="524288"
Do you know if they are still needed in 10.3, or mabee a better value?
Regards
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Migrate from PFsense to OPNsense
«
Reply #4 on:
July 19, 2016, 11:51:48 pm »
There is also an older 16.1.8 image, but 16.7-RC2 is almost all of 16.7 so it's best to start there.
Wouldn't risk omitting the loader values, although it makes we wonder where you came from. pfSense 2.2.6 maybe? In that case e.g. from 10.1 to 10.3 not a lot has changed in FreeBSD as most of the network stack reworks are locked into FreeBSD 11 due to a larger rework/restructuring happening there.
Cheers,
Franco
Logged
Julien
Hero Member
Posts: 666
Karma: 33
Re: Migrate from PFsense to OPNsense
«
Reply #5 on:
July 19, 2016, 11:54:27 pm »
This is my new project after I will finish with some implantation .
Have created a LAB and will test on a VM.
If any one has gotten this working would like to know if it even possible .
Logged
OPNsense 23.1.7_3-amd64
FreeBSD 13.1-RELEASE-p7
OpenSSL 1.1.1t 7 Feb 2023
shade73
Newbie
Posts: 49
Karma: 3
Re: Migrate from PFsense to OPNsense
«
Reply #6 on:
July 20, 2016, 01:13:48 pm »
Yes, I came from pfSense 2.2.6.
I also think it will be best to keep the values in loader.conf, because we have 1 Gbps internet connection, and the netcard have alot of load on all 4 ports.
Logged
shade73
Newbie
Posts: 49
Karma: 3
Re: Migrate from PFsense to OPNsense
«
Reply #7 on:
July 20, 2016, 05:23:00 pm »
My migration goes well I have now both boxes (Lenovo RS140) up and running with 16.7r2.
All rules and configuration have been migrated, mostly by hand.
I have configured High Availability and it seems to work, the master can see the backup and show what services are running on it and configuration changes on the master are shown on the backup almost instant.
Fail over also seems to work, only one problem. On the master under Firewall/Virtual IP's/Status it says that it is master on ALL carp interfaces (all good here), but on the backup it says it is backup on almost all carp interfaces. The backup is also master on the WAN interface.
That shows in 2 ways, one if I ping one of our server from the WAN then i get a (DUP) reply on the ping, one correct answer from the master firewall and one DUP from the backup.
Second the backup can not check for updates our reach the internet because it uses the carp address, and then the master picks up on the answer.
I have looked both here (
https://docs.opnsense.org/manual/how-tos/carp.html
) and in the
https://doc.pfsense.org/index.php/Configuring_pfSense_Hardware_Redundancy_(CARP
) for ideas on if I have done something wrong. But everything seems to be configured correct.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Migrate from PFsense to OPNsense
«
Reply #8 on:
July 21, 2016, 09:38:05 am »
The problem in both cases seems to be the backup being stuck in a faulty state. I'm guessing that a reboot didn't help.
I don't know how to debug this, Ad will be back tomorrow.
Logged
shade73
Newbie
Posts: 49
Karma: 3
Re: Migrate from PFsense to OPNsense
«
Reply #9 on:
July 21, 2016, 12:39:13 pm »
No, a reboot does not change a thing.
Shall I disable HA until furter notice?
Logged
shade73
Newbie
Posts: 49
Karma: 3
Re: Migrate from PFsense to OPNsense
«
Reply #10 on:
July 21, 2016, 05:35:44 pm »
Got to the last migration point, the OpenVPN server, got the configuration in and the service up and running and listening on the right port.
I can no find any client settings to export (client install packages). I have checked where it normmaly goes wrong and all seems right, I have created a Trust Authoritie, and with that I have created a certificate for the OpenVPN server and also a client/user certificate.
But no user to export, do you have some input?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Migrate from PFsense to OPNsense
«
Reply #11 on:
July 21, 2016, 07:55:50 pm »
For the certificates to show up the user certificates need to be assigned to the users and the OpenVPN server mode must be set to "Remote Access" with SSL/TLS in it.
Yes, temporary disable HA. Let us help figure out the issue out tomorrow.
Cheers,
Franco
Logged
shade73
Newbie
Posts: 49
Karma: 3
Re: Migrate from PFsense to OPNsense
«
Reply #12 on:
July 22, 2016, 04:12:11 pm »
Okay great, that makes sense and now I can se the users.
On the old platform, I did not create the users as the where external verified.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Migrate from PFsense to OPNsense
«
Reply #13 on:
July 22, 2016, 05:32:23 pm »
We discussed the HA issue and were wondering whether
(a) there is a typo in the VHID, or
(b) there is a policy/piece of metal between the two boxes that prevents them from able to talk CARP to each other on the WAN side.
Cheers,
Franco
Logged
shade73
Newbie
Posts: 49
Karma: 3
Re: Migrate from PFsense to OPNsense
«
Reply #14 on:
July 22, 2016, 07:01:04 pm »
Regarding
(a) Everything seems to be OK, the VHID where created on the primary firewall and synced to the backup when HA was enabled so whey should be the same.
(b) There is a cable between the two firewalls on a dedicated sync port on the NIC, in the firewall rules on both firewall under the "sync tab" is is ipv4 allow everything.
Regards
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
Archive
»
16.1 Legacy Series
»
[SOLVED] Migrate from PFsense to OPNsense