From nobody Tue Mar 25 10:41:54 2025 X-Original-To: bugs@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 4ZMRLV4dNxz5sLMg for ; Tue, 25 Mar 2025 10:41: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 4ZMRLV2gy4z4J6y for ; Tue, 25 Mar 2025 10:41:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742899314; 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; bh=NdH4Gkoiu/96aV+OdSUVPtI0vLwiwygB1PqSS4eHX6s=; b=CSAU+H9vQ7nCik1dNYxvWEa+5WUYe1YZ0pyMEO5wyDSem7XL/KMnsdnv+4pxAm2TATXX75 AHQGBxAo4RumjCIgVpE2tRYCHPwHoFg0qfG9BtXOUhK0Xzqf1Y+db26Z4pbB7rvhzEvYGT vO8TboDiuagjOdiOjzCzTwxkxP6iS2Igl3qdpdkcMM8eQyJIFi6kEU02CzmRAw6K7eBVTJ 1zAZaEzn65xLOkP9FkEm39EzTMy6Du7cI1iUeu1A3kJxEpw87Dk2MOPW9LqDwOKZv9uAzZ XDoFhqMixVI9B/jUvwYcD+aIRVqf7REfoIO5WczKPPvVW9J5l78jodmf2NvTSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742899314; a=rsa-sha256; cv=none; b=W2f0YfnEYOKhvybJy5Zr6MttD88+T/MzgTuqPxV1LZq8akkCEWSdydI2fsEhzKebt23pXA Y7VKChcHK871tZ+q94RSQPFfGOH/IGPKu30Nf8cSRNexwgmEOXMDoXkt0NpRiqE4LslwjY lhv3aInWg4548ywEAglrBL7AgFc0b6MuyJPuwH1mNx6d0d9bGoqpCOOpNdy7NBZmQlyOKp wtHgWX/yc02p/OKkF4d2MovdyrSUj5oEg90RaNbQFDft+sEDgcMNy5cwTi+t2PFagB/aTn FKiB9w88A2O2ZUiHvrAXFy/5w/Y6BJL9dZpsabvV+X4ruqGxYSvjIuQbpR76SA== 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=1742899314; 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; bh=NdH4Gkoiu/96aV+OdSUVPtI0vLwiwygB1PqSS4eHX6s=; b=qFWDUZpmZtvGp0uarWZrii17GFcqYRcYzQM6HeUjsaDj9Nwf/oLOEzjcRNKkHmbEBd9EfU tktPIgtlKCUyUPHP8lmgmn7ZdtXNxE6A+RDS5CnmySQWbAsmCrh87lM19mzkNkri1uvAOY h3rGPKzTo6OZ7wrZjq/mdlVlbDcy/nJqCxVBXlUBRMxAEjWmqGI4JTvpSE/bBSprIja176 JryDaKdWVMbHjDlI5xs26gbQUHv72ntk3527tr7Q2PfK/pLm+rUnzVSMBZXT6jYR4U7xgQ mF9yH1AZxKSacSJXt/mVvmpTdZJZ8C3c4sXl/TFTgL04UUa6yuqwT53xJkEa1A== 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 4ZMRLV2HnNzdSp for ; Tue, 25 Mar 2025 10:41:54 +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 52PAfstT090068 for ; Tue, 25 Mar 2025 10:41:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52PAfsop090067 for bugs@FreeBSD.org; Tue, 25 Mar 2025 10:41:54 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: bugs@FreeBSD.org Subject: [Bug 285650] The address of a CARP BACKUP node can be used as the source of outgoing packets Date: Tue, 25 Mar 2025 10:41:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: fault.seg@laposte.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285650 Bug ID: 285650 Summary: The address of a CARP BACKUP node can be used as the source of outgoing packets Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: fault.seg@laposte.net Hello all, it seems that, even after the commit https://cgit.freebsd.org/src/commit/?id=3Dd6e1ae659b11a13a9c289424735394173= 907c1d3, the IP address of a CARP BACKUP node can still be used as the source of outgoing packets. This only occurs: - after a down/up of the corresponding interface - and the VIP address is the first declared alias for the corresponding net= work Steps to reproduce: Deploy two CARP nodes on FreeBSD 14.2-RELEASE (reproduced also on 13.3): - Node 1:=20 ifconfig_vmx2_alias0=3D"inet 10.0.0.10 netmask 255.255.0.0 alias vhid 111 a= dvskew 200 pass test" ifconfig_vmx2_alias1=3D"inet 10.0.0.1 netmask 255.255.0.0" - Node 2: ifconfig_vmx2_alias0=3D"inet 10.0.0.10 netmask 255.255.0.0 alias vhid 111 a= dvskew 200 pass test" ifconfig_vmx2_alias1=3D"inet 10.0.0.2 netmask 255.255.0.0" On the BACKUP node: - Outgoing packets to 10.0.0.0/16 use the correct local source address - Restart the interface: # ifconfig vmx2 down kernel: carp: 111@vmx2: BACKUP -> INIT (hardware interface down) kernel: carp: demoted by 240 to 480 (interface down) # ifconfig vmx2 up kernel: carp: 111@vmx2: INIT -> BACKUP (initialization complete) kernel: carp: demoted by -240 to 240 (interface up) - Outgoing packets to 10.0.0.0/16 now use the first declared IP address, wh= ich is the CARP address in this case (in BACKUP state) Any help to point out the cause of this unexpected behavior would be greatly appreciated. --=20 You are receiving this mail because: You are the assignee for the bug.=