OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: allebone on February 18, 2021, 12:34:26 AM

Title: How to backup and restore wireguard config
Post by: allebone on February 18, 2021, 12:34:26 AM
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
Title: Re: How to backup and restore wireguard config
Post by: Patrick M. Hausen on February 18, 2021, 08:49:41 AM
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.
Title: Re: How to backup and restore wireguard config
Post by: allebone on February 18, 2021, 01:30:56 PM
Ok thanks I will try :)