NetBSD Problem Report #60387

From www@netbsd.org  Tue Jun 30 00:23:50 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "R13" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A86D21A923A
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 30 Jun 2026 00:23:50 +0000 (UTC)
Message-Id: <20260630002349.BE26E1A923B@mollari.NetBSD.org>
Date: Tue, 30 Jun 2026 00:23:49 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: experimental wg(4) should be able to bind to an interface or address
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         60387
>Category:       kern
>Synopsis:       experimental wg(4) should be able to bind to an interface or address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 30 00:25:00 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10
>Organization:
The NetWG Boundation, Inc.
>Environment:
>Description:

	A wg(4) interface can be configured to listen on a given port
	number with `wgconfig wgN set listen-port <port>', but it binds
	to any address at that port number, v4 or v6.

	It should be possible to also make it bind to a particular
	address, and/or perhaps address family or interface.

>How-To-Repeat:

	try to listen only on a private address rather than all
	addresses including public ones

>Fix:

	Possible additions:

	- wgconfig wgN set listen-address <addr>[:<port>]
	- wgconfig wgN set listen-interface ifN

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.