Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2021 07:55:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 254328] net/wireguard
Message-ID:  <bug-254328-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254328

            Bug ID: 254328
           Summary: net/wireguard
           Product: Ports & Packages
           Version: Latest
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: decke@FreeBSD.org
          Reporter: oleg@pcbtech.ru
          Assignee: decke@FreeBSD.org
             Flags: maintainer-feedback?(decke@FreeBSD.org)

After update to the latest revision it waits forever if service is=20
stopped/restarted:

# service wireguard restart
[#] ifconfig wg0 destroy
load: 0.21  cmd: ifconfig 4128 [tun_condvar] 25.06r 0.00u 0.00s 0% 2036k
load: 0.08  cmd: ifconfig 4128 [tun_condvar] 231.71r 0.00u 0.00s 0% 1784k
load: 0.01  cmd: ifconfig 4128 [tun_condvar] 471.35r 0.00u 0.00s 0% 1784k
load: 0.06  cmd: ifconfig 4128 [tun_condvar] 654.40r 0.00u 0.00s 0% 1784k

the ways to restart wireguard are: a) full reboot and b) kill the pid that =
owns
the wg0:

# service wireguard restart
[#] ifconfig wg0 destroy
load: 0.21  cmd: ifconfig 4128 [tun_condvar] 25.06r 0.00u 0.00s 0% 2036k
load: 0.08  cmd: ifconfig 4128 [tun_condvar] 231.71r 0.00u 0.00s 0% 1784k
load: 0.01  cmd: ifconfig 4128 [tun_condvar] 471.35r 0.00u 0.00s 0% 1784k
load: 0.06  cmd: ifconfig 4128 [tun_condvar] 654.40r 0.00u 0.00s 0% 1784k
^Z
Suspended
# bg
[1]    service wireguard restart &
# ifconfig wg0
wg0: flags=3D8011<UP,POINTOPOINT,MULTICAST> metric 0 mtu 1420
        options=3D80000<LINKSTATE>
        nd6 options=3D101<PERFORMNUD,NO_DAD>
        Opened by PID 716
# kill 716
# [#] 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

Fortunately while it waits to be destroy the tunnel is still working

FreeBSD 12.2-RELEASE-p4 GENERIC  i386

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254328-7788>