[Bug 254212] can't initialize an if_wg interface with IPv6 disabled
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Mar 11 02:45:08 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254212
Bug ID: 254212
Summary: can't initialize an if_wg interface with IPv6 disabled
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: markj at FreeBSD.org
if_wg creates IPv4 and IPv6 listening sockets. sobind() will fail for the IPv6
socket when the vnet has no IPv6 addresses assigned to any interface, see the
first check in in6_pcbbind(). So if one creates a fresh vnet and instantiates
a wg interface there, the link won't come up. As a workaround one can do
something like "ifconfig lo0 up", since that automatically assigns ::1. I'm
not sure why that check in in6_pcbbind() is needed in the first place.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list