Date: Thu, 11 Mar 2021 02:45:08 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254212] can't initialize an if_wg interface with IPv6 disabled Message-ID: <bug-254212-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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@FreeBSD.org Reporter: markj@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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254212-227>
