OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: astuckey on September 01, 2020, 05:36:07 AM

Title: Wireguard enhancement patch
Post by: astuckey on September 01, 2020, 05:36:07 AM
Hi all - a quick FYI for intensive wireguard users.

OPNsense: 20.7.1

Currently the "Save" button in Wireguard actually restarts the entire WG service, causing an outage to existing tunnels, so if you add an endpoint for example, you still get an outage on other unrelated tunnels (the "reconfigure" api endpoint also).

I raised this bug report:
https://github.com/opnsense/plugins/issues/1951

We created a pull request to address this, so instead of restarting the service, it performs a reload (which in turn calls the wg syncconf to merge the config while running).
https://github.com/opnsense/plugins/pull/2008

Seems to be working well for us now, feel free to test out and leave feedback, hopefully this can be merged in to a future release.

Cheers,
Adam
Title: Re: Wireguard enhancement patch
Post by: mimugmail on September 01, 2020, 06:11:18 AM
Thx! I will test it this week :)
Title: Re: Wireguard enhancement patch
Post by: banym on September 01, 2020, 04:31:08 PM
Thank you.
Title: Re: Wireguard enhancement patch
Post by: jassonmc on September 03, 2020, 09:41:39 PM
That's a great patch and makes a lot of sense, thank you!