[Bug 254607] net/wiregaurd-tools: patch-wg-quick_freebsd.bash-2 cause "Destination address required"
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Mar 27 17:55:39 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254607
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 at FreeBSD.org
Reporter: meta at FreeBSD.org
Hi,
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 kernel
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.
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list