OPNsense Forum

English Forums => Virtual private networks => Topic started by: sagem2004 on February 29, 2024, 04:35:46 pm

Title: WireGuard
Post by: sagem2004 on February 29, 2024, 04:35:46 pm
hello !!!

Can you confirm whether, during a hardware change using the XML backup file, it is necessary to perform a specific manipulation to retain the WireGuard configuration?

Merci.
Title: Re: WireGuard
Post by: johnmcallister on February 29, 2024, 09:24:23 pm
To the best of my knowledge, all Wireguard settings, tunnels, keys, etc. are preserved in the main config.xml file which is the "master configuration" for an OPNsense instance. No special or separate backup of WG settings should be required in a normal backup / restore scenario.
Title: Re: WireGuard
Post by: Seimus on March 01, 2024, 09:50:57 am
All config,

As well that one related to VPN, is in the main config file. When you export it via the OPN GUI, you can open that file and you will see it there.

Everything related to the config and specific for the device (NIC interface naming, em, igc,igb) is there. When you migrate to another H/W the only thing you need to migrate it successfully is to make sure the config that you will import has the proper physical naming replaced in the config file.

I did this when I went from igb to igc NICs, just renamened them and all config was restored without further adjustment.

Regards,
S.
Title: Re: WireGuard
Post by: sagem2004 on March 01, 2024, 04:55:41 pm
Thank you for this confirmation