From nobody Fri Nov 21 20:24:38 2025 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dCmsf5Gk6z6HjNX for ; Fri, 21 Nov 2025 20:24:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dCmsf48qwz3pf8 for ; Fri, 21 Nov 2025 20:24:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763756678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SVXTPHR79y0aEIZi11Qgrg1eXjNq+hqWJmVKW1adc+8=; b=fSHHlcjOtnUpn9790tXPWYKqaqd7EbCmP+ZkIYN8fcSFwqILtITe9M2UejxnKO5O/zKqyZ 2jrhzetk2g4AfIu6vQeo6pMzUans2oPP/MjmGtdfYz75JVWqNlFAWoBn1sJ0Wb92UrQKX/ DfqVb0hIipfjdRWRe0xe6WujvwXaQa00/UjPCeSf6HoFntoOP3vYhohIwEpgBeXfxLki9d +ZiOWsik1r0Iwn/44YH2jipewPjDRP/+TvA+9wcR7/zNalffdgosI4Pq6W8Ag0556aTqAU n4+FrveVfguav1uGdbPaIgoM4dMW8fi8u/8RTgfjdhcnCAk9D9uJw7x1Vy7KNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763756678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SVXTPHR79y0aEIZi11Qgrg1eXjNq+hqWJmVKW1adc+8=; b=tDYpLMH9+cMK5B8ztPV8FdKwCBFFNaGn+gkBn539wCL6kjL8u/eC17FAf2JKlQ6E76psKz mbBMcJnP0uz088uWOX2D7ZZmsDADdkdhkm40Yud19YaE8C+BefOzqBmHMOiGNGK+qKZQNo 754Yf3rFVOXWCJpqr+OMf6yUSAVqnVxa0rjSrvlTNNVTQv7SM2GR0TUHEDqDU4FhaJRQoH qjkR8Tw3BLKEJ0p1jxoOG/DOrGDDIlvC5aNsXzgfWlnivYFzngjGNkKBMQr8hEXmGy4yB6 Qgbxm2yd+vhmmXAo5iT1ZsKxiFHVDrS/35gJdiWV6KUbCvz7bAaR57t+BqOjvg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763756678; a=rsa-sha256; cv=none; b=bh6WH6qQY2NMoQhu6SpcjiW69h4b0NpSUbxXgk3/lyAoICLOGCNebAEGX5SBfnH1EREpZH I4BE/DVmjCIKf4n1KKhZI9a2tagU9tB9h+Yj9AI9RvGrF7FvMiFIXKs6bi183Z05FGKAC3 PMlgiyQxhIzlzUrRjPu7e81TYr+R855niEsIVn7270EjBTVlVSNhOm6+vge0itt9kmunBS j3/hf1YwPEWyTIeQhhuy0iMRDQOZ5H4fr7OTzudVU2X1b84+vSQJ1+KrbLn4tIkLcW7a6S CwzAimk1ihovmod4VXt8/J7IX4hl/t1WgGqcnt7fhdg+mY1VJbqL2VwkbGp+/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4dCmsf3hs2zBbW for ; Fri, 21 Nov 2025 20:24:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5ALKOcTQ026291 for ; Fri, 21 Nov 2025 20:24:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5ALKOcW9026290 for net@FreeBSD.org; Fri, 21 Nov 2025 20:24:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 290768] if_wg(4): handshake response has src and dst reverse Date: Fri, 21 Nov 2025 20:24:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kevans@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290768 --- Comment #19 from Kyle Evans --- (In reply to relvy from comment #17) I don't really see how that's possible at the moment; we get that addrerss = one of a few different ways: 1.) wg(8) set it via the ioctl interface, but it only does that for AF_INET= / AF_INET6 2.) When we receive a valid handshake initiation 3.) When we receive a valid handshake response 4.) When we receive a valid packet over the tunnel For #2 - 4, those are pulled from the `pkt->p_endpoint`, which is populated= in wg_input(). If we didn't get an AF_INET / AF_INET6 address *there*, the pa= cket is dropped. You say that IPv6 is disabled, but I don't think opnsense prod= uces any kernel configs with it completely ripped out, so EAFNOSUPPORT from it b= eing an AF_INET6 is likely not what's happened -- something presumably went wron= g in the sosend() path instead. --=20 You are receiving this mail because: You are the assignee for the bug.=