Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2021 17:55:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 254607] net/wiregaurd-tools: patch-wg-quick_freebsd.bash-2 cause "Destination address required"
Message-ID:  <bug-254607-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 254607
           Summary: net/wiregaurd-tools: patch-wg-quick_freebsd.bash-2
                    cause "Destination address required"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: meta@FreeBSD.org

Hi,=20

after recent addition of patch-wg-quick_freebsd.bash-2 broke it. Did you
actually test it?

# pkg info|grep wireguard
wireguard-2,1                  Meta-port for Wireguard
wireguard-go-0.0.20210323,1    WireGuard implementation in Go
wireguard-kmod-0.0.20210323    WireGuard implementation for the FreeBSD ker=
nel
wireguard-tools-1.0.20210315_3 Fast, modern and secure VPN Tunnel

# wg-quick up wg0
[#] ifconfig wg create name wgs
[#] wg setconf wg0 /dev/stdin
[#] ifconfig wg0 inet 192.168.30.235 alias
ifconfig: ioctl (SIOCAIFADDR): Destination address required
[#] ifconfig wg0 destroy


wireguard-tools-1.0.20210315_2 was working properly.=20

Simple instructions to reproduce:
1. ifconfig wg create name wg0
2. ifconfig wg0 inet 192.168.1.2 alias
3. ifconfig fails with "ifconfig: ioctl (SIOCAIFADDR): Destination address
required"


I think the removed argument "${1%%/*}" is necessary. It is the destination
address. I haven't test it at FreeBSD 13 but at least
patch-wg-quick_freebsd.bash-2 must not be applied on FreeBSD 12.

This works:
ifconfig "$INTERFACE" inet "$1" "${1%%/*}" alias

but his doesn't work actually:
ifconfig "$INTERFACE" inet "$1" alias

--=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-254607-7788>