OPNsense Forum

English Forums => Virtual private networks => Topic started by: khs on June 01, 2023, 10:19:47 AM

Title: Migration of WireGuard configuration from wireguard-kmod to wireguard-go
Post by: khs on June 01, 2023, 10:19:47 AM
Regarding a transition from wireguard-kmod to wireguard-go, I have a WireGuard configuration that was set up entirely using the WebUI. If I uninstall wireguard-kmod and install wireguard-go, will my existing WireGuard configuration automatically migrate to the new implementation? I'm specifically concerned about the migration of my configuration of existing peers. Any guidance or steps to ensure a smooth migration would be appreciated.
Title: Re: Migration of WireGuard configuration from wireguard-kmod to wireguard-go
Post by: franco on June 01, 2023, 10:39:12 AM
It's the same implementation plugin-wise. 23.1 switches the old os-wireguard to wireguard-kmod use automatically, but if you prefer the wireguard-go implementation you can install os-wireguard-go and os-wireguard/wireguard-kmod is automatically removed.


Cheers,
Franco
Title: Re: Migration of WireGuard configuration from wireguard-kmod to wireguard-go
Post by: khs on June 01, 2023, 10:47:29 AM
Greetings and thank you for the input,

This is the advice I was given from a zenarmor employee:

QuoteYou need to use wireguard-go module. We experienced that if you install wireguard-go without uninstalling the kernel module, it can not be converted as expected. You need to remove wireguard kernel module, then install wireguard-go module.

So if I uninstall kmod first and then install wireguard-go, the config will be transferred automagically ?
Title: Re: Migration of WireGuard configuration from wireguard-kmod to wireguard-go
Post by: Patrick M. Hausen on June 01, 2023, 10:49:10 AM
There is nothing to transfer. It's the same configuration.
Title: Re: Migration of WireGuard configuration from wireguard-kmod to wireguard-go
Post by: khs on June 01, 2023, 11:03:17 AM
Ok, got it, thank you.

Uninstalling the kernel module before the installation of wireguard-go will not purge the config files, is this correct ?
Title: Re: Migration of WireGuard configuration from wireguard-kmod to wireguard-go
Post by: franco on June 01, 2023, 11:34:56 AM
You don't need to worry about deinstall unless you manually installed wireguard-kmod before. Configs are not an issue. The plugin is the same, only the dependency is different.


Cheers,
Franco