From nobody Sat Mar 15 08:07:53 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 4ZFDPQ39pRz5qMHJ for ; Sat, 15 Mar 2025 08:07:54 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZFDPP4x0Vz3Zct for ; Sat, 15 Mar 2025 08:07:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742026073; 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=cxDY5XLPwLBxdNb4wgYRHLZhFUn3LH89xEuL/j1GWFs=; b=xpLUasdeYSi5fVKBcniVJOoLpLKGJ29HO4nPQz51VNN78GCkpzhAgpF7wSFqnSiV/ebSiX fKdZwc0y1MBqLraGZ30npgkFTqNGInFdsw//vTu81ZJKsjfJAY5tmupiuYn096JOyakVjm QoJPmGnljsM0xZdH6MzP/p6P+MZz6D1xm1rJrwdOP9fJiwWRq7vq+wGFGNjapjMHVdTDLj uLVGLiCFXLsRzKrbpCQElvYLO//pfyJ+gDnNPODOUZL4vzzFRzkklUzQjCbQPLD0Ef0YL4 GzgEzez+8GTFOgtxrFi4zswksPXJclUISub3sGQxYX9ESYhL0XYNN18ne0ab0A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742026073; a=rsa-sha256; cv=none; b=VKCNSeURdQSAlP7GnEUojutwC5B+BD0AtGmHq/fbnOswsJj9pIZdaWLECrobeen4Q0NHuH QLxp3lo113g4p4DE/YuEQSTMCMmyyp5thK1M2KP7VSeYvwitmoyGcC+1gKTQ30MsKpg/aB SHNR6dtrNniv+CIhHRUcnJHVM1J9jE07PiQHaxScGn0gAS8i53OuLVetDJ7d4K9kvaUBeW VyKO7rThete66ZHgBnOqjNnexidZ+avRh9uZ1NLisIN991cW2/9A8805hkfoFasiI1SRsR 0tTq4Dy7+6BpEUhko3oMATWKZfeKEN2gnogZlcVBe/7/+j2xIRhG/uja6v6OMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742026073; 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=cxDY5XLPwLBxdNb4wgYRHLZhFUn3LH89xEuL/j1GWFs=; b=UlbiekxaC8UiXMZMpr5wV/EUgnSXZYR7ROK+fPHMkM/OriM7rVHKJOQzSSxxJFlHKBqXWs jutT2Xxqo6aJ8g1cUr4Qg7o79g+Ijn00X9pL/HHxGgV/zI11OceAGkU4PR1Cuhi3b45I6n S469rciBZjrRWEKIfxHPHSxcZuEv4wUwvvfxAVtbor6wy9BtXtHkTy77pKhKaHNczo1Arf DcdkHyIGVeAC1g2vLrcJ1Z1/JO+SOna6o+rQR9EJ9nw52Twsoidp0zwseU1DTlAYek5kva aC0ZJ76jVGi3yce2sXUNUgtOD2Qiu7TuNRxhPi2o4K9HEMNSw9faRVCz9TVLzw== 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 4ZFDPP4Clkz1LKv for ; Sat, 15 Mar 2025 08:07:53 +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 52F87rDb003542 for ; Sat, 15 Mar 2025 08:07:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52F87rjM003541 for net@FreeBSD.org; Sat, 15 Mar 2025 08:07:53 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 285422] IPv4 source address selection is broken (with loopbacks) Date: Sat, 15 Mar 2025 08:07:53 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lexi@hemlock.eden.le-fay.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=3D285422 --- Comment #2 from Lexi Winter --- (In reply to Marek Zarychta from comment #1) > this is how it has been since the beginning when in FreeBSD was introduce= d the ability to send IPv4 packets via IPv6 next-hops. this is not specific to IPv6 nexthops, that's just the easiest way to repro= duce it. example using IPv4 only over wg(4) interfaces: # ifconfig lo0 inet 1.1.1.1/32 alias # route add -inet 2.2.2.2/32 -interface wg.uk-aai-1 add net 2.2.2.2: gateway wg.uk-aai-1 fib 0 # ping 2.2.2.2 PING 2.2.2.2 (2.2.2.2): 56 data bytes ping: sendto: No route to host ^C # route delete 2.2.2.2 delete host 2.2.2.2 fib 0 # ifconfig wg.uk-aai-1 1.1.1.1/32 alias # route add -inet 2.2.2.2/32 -interface wg.uk-aai-1 add net 2.2.2.2: gateway wg.uk-aai-1 fib 0 # ping 2.2.2.2=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 PING 2.2.2.2 (2.2.2.2): 56 data bytes # tcpdump -ni wg.uk-aai-1 ip=20=20=20=20=20=20=20=20 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on wg.uk-aai-1, link-type NULL (BSD loopback), snapshot length 26= 2144 bytes 08:02:36.591066 IP 1.1.1.1 > 2.2.2.2: ICMP echo request, id 53360, seq 0, length 64 > Why do you think that address 0.0.0.0 is the wrong one? because this is different from how other platforms (Linux, Cisco IOS, ...) work, in a way which is not useful: it prevents common configurations from working, for no benefit. it would be preferable if FreeBSD would work the = way everyone else does. > You can still use the loopback address as the source for ping yes, but it's not reasonable to expect the user to configure IP source addr= ess for every application running on a host. --=20 You are receiving this mail because: You are the assignee for the bug.=