Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
How to switch to wireguard-go in 23.7?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to switch to wireguard-go in 23.7? (Read 1830 times)
Mechman
Newbie
Posts: 7
Karma: 1
How to switch to wireguard-go in 23.7?
«
on:
August 18, 2023, 02:05:44 pm »
Hi all,
I'm running wireguard-go in 23.1. After updating to 23.7 wireguard-go is still listed as installed, but it seems the kmod variant is used, as the issues described in this post
https://forum.opnsense.org/index.php?topic=32110.msg155352#msg155352
are reappearing. Also there is no longer a running wireguard-go process and the services only list wireguard as running.
Tried switching between both plugins as I did in 23.1, but I still cannot make the system use the go variant.
Thanks for your help!
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to switch to wireguard-go in 23.7?
«
Reply #1 on:
August 18, 2023, 02:08:09 pm »
Screenshot of plugin list please.
Cheers,
Franco
Logged
Mechman
Newbie
Posts: 7
Karma: 1
Re: How to switch to wireguard-go in 23.7?
«
Reply #2 on:
August 18, 2023, 02:28:16 pm »
Here you go:
Logged
Mechman
Newbie
Posts: 7
Karma: 1
Re: How to switch to wireguard-go in 23.7?
«
Reply #3 on:
August 18, 2023, 02:30:10 pm »
Additionally services and processes.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to switch to wireguard-go in 23.7?
«
Reply #4 on:
August 18, 2023, 02:31:36 pm »
Ah, this is great. wireguard-go doesn't work because FreeBSD 13.2 has WireGuard in the kernel. -.-
I'll try to see if I can fix this for 23.7.2.
Cheers,
Franco
Logged
Mechman
Newbie
Posts: 7
Karma: 1
Re: How to switch to wireguard-go in 23.7?
«
Reply #5 on:
August 18, 2023, 02:36:00 pm »
Thanks!
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to switch to wireguard-go in 23.7?
«
Reply #6 on:
August 18, 2023, 02:38:54 pm »
For reference:
https://github.com/WireGuard/wireguard-tools/blob/13f4ac4cb74b5a833fa7f825ba785b1e5774e84f/src/wg-quick/freebsd.bash#L117-L129
wg-quick just tries to add an interface and if it works it ignores the go implementation.
I don't see another choice but to disable the WireGuard kernel module.
Cheers,
Franco
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to switch to wireguard-go in 23.7?
«
Reply #7 on:
August 18, 2023, 02:39:58 pm »
PS: Maybe if you do this you can trick it into using go on the next reboot:
# mv /boot/kernel/if_wg.ko /root
Logged
Mechman
Newbie
Posts: 7
Karma: 1
Re: How to switch to wireguard-go in 23.7?
«
Reply #8 on:
August 18, 2023, 02:56:43 pm »
Nice, that works!
Logged
RamSense
Hero Member
Posts: 594
Karma: 10
Re: How to switch to wireguard-go in 23.7?
«
Reply #9 on:
August 18, 2023, 05:20:56 pm »
@Mechman: I was experiencing the malfunction of the WG kernel (and go as of latest OPNsense update) [Wireguard handshakes are timing out] but I managed to keep it working by adding this in the endpoint(s)
Keepalive Interval 25
Logged
Mechman
Newbie
Posts: 7
Karma: 1
Re: How to switch to wireguard-go in 23.7?
«
Reply #10 on:
August 18, 2023, 06:19:37 pm »
I already have keepalives active, but still packets were sent out the wrong interface. For now go works fine, I will monitor this as it is an intermittent issue.
Logged
Mechman
Newbie
Posts: 7
Karma: 1
Re: How to switch to wireguard-go in 23.7?
«
Reply #11 on:
August 26, 2023, 06:58:53 pm »
The fix in 23.7.2 is working, wireguard-go runs fine again.
Keep up the great work, so far no other issues with 23.7!
Thanks again, Franco!
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to switch to wireguard-go in 23.7?
«
Reply #12 on:
August 26, 2023, 08:38:13 pm »
This was an unforeseen complication in the upgrade. Sorry for the trouble.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
How to switch to wireguard-go in 23.7?