How to backup and restore wireguard config

Started by allebone, February 18, 2021, 12:34:26 AM

Previous topic - Next topic
Hi all,

I was setting up a physical opnsense box to replace my virtual one and backed up the config and restored it, but before putting it into production I checked and found it does not have any wireguard vpn settings. If I install the plugin will the settings be there? Or do I have to first copy a file from somewhere over in order to ensure the settings will be copied?

Kind regards
Pete

If you install the plugin first, a config restore should do what you expect.

If you made too many modifications to do that in the meantime you can open the saved config in any text editor and search for the wireguard bits. The recreate the wireguard config manually.
It's all just XML. Not fun to read but definitely workable.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)