Summary: | net/wireguard: after update to the latest revision it waits forever if service is stopped/restarted | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Oleg Streejak <oleg> |
Component: | Individual Port(s) | Assignee: | Bernhard Froehlich <decke> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | chris, matt.r.smith, oleg, raul.munoz |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(decke) |
Version: | Latest | ||
Hardware: | i386 | ||
OS: | Any |
Description
Oleg Streejak
2021-03-16 07:55:13 UTC
I see the same on 13.0-RC2. You can get the service to cleanly exit by deleting the /var/run/wireguard/wg0.sock file which suggests that something is waiting for wireguard-go to exit? (In reply to Matt Smith from comment #1) yes, that works also: # service wireguard restart & ; sleep 3; rm /var/run/wireguard/wg0.sock [1] 17017 [#] ifconfig wg0 destroy # [#] ifconfig wg create name wg0 [!] Missing WireGuard kernel support (ifconfig: SIOCIFCREATE2: Invalid argument). Falling back to slow userspace implementation. [#] wireguard-go wg0 [#] wg setconf wg0 /dev/stdin [#] ifconfig wg0 mtu 1420 [#] ifconfig wg0 up [#] route -q -n add -inet 192.168.0.107/32 -interface wg0 [#] route -q -n add -inet 192.168.0.106/32 -interface wg0 [#] route -q -n add -inet 192.168.0.101/32 -interface wg0 [+] Backgrounding route monitor [1] Done service wireguard restart ^Triage: give this a more useful Summary. A commit references this bug: Author: decke Date: Tue Mar 23 19:59:44 UTC 2021 New revision: 569057 URL: https://svnweb.freebsd.org/changeset/ports/569057 Log: net/wireguard-tools: Add patches to fix hang at stop/restart PR: 254328 Submitted by: Jason A. Donenfeld <Jason@zx2c4.com> Reported by: Oleg Strizhak <oleg@pcbtech.ru> Changes: head/net/wireguard-tools/Makefile head/net/wireguard-tools/files/patch-wg-quick_freebsd.bash-1 head/net/wireguard-tools/files/patch-wg-quick_freebsd.bash-2 Fixed. Thanks! Thank you a lot! |