Restore recent configuration: where to place external config file?
-
I have a 6100 arriving Monday to replace my dead 5100 and have a converted config file from support all set to go. I'd like to log into the console once I get it, and after ensuring it's on the same or later pfsense version as my config (22.05), use the "Restore recent configuration" option in the console to quickly set things to how they should be. As this config file was sent to me via email and isn't going to be in the "Config History" of the device yet, I was wondering if I could still use this option to restore my config file? If so, is there some place I would need to copy it? I presume I'd need to place it on a USB drive and move it to a specific directory (via the shell option) but I don't know where that would be.
Or is this not possible and the suggested approach would be to just log into the WebGUI, go through the initial setup wizard, and then load my config file via the browser? Thanks!
-
AFAIK you can just copy the config (named config.xml) to the "root dir" of a blank formatted FAT32 USB Stick , and boot with the stick inserted.
See:
https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#restore-configuration-from-usb-during-installHere it says to create a /conf dir and put the config.xml there.
But i'm quite sure it will work with the config file in the "root dir" too.Remember to remove the USB stick after bootup is completed, else the USB config file will be restored on every boot.
/Bingo
-
Yes, it now checks in both the root or /conf on a connected USB stick.
The recommended approach is to use the GUI though if you have access to it. And you should do as it will be factory fresh so just connect to the LAN and upload the config that way.
Steve
-
@stephenw10 will do thanks