From nobody Fri Nov 17 17:07:30 2023 X-Original-To: pf@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 4SX3HQ1x0hz519MP for ; Fri, 17 Nov 2023 17:07:30 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SX3HQ002Kz4RZL for ; Fri, 17 Nov 2023 17:07:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700240850; 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=Rha2NUJ5rMu2lz76DH/nH9RPqcdOA7IJjvEgBXg7Ih8=; b=aKSNmhNbPf1Gv5NJHi/+BI5GwjQUpizogkgV9Z466KpYAhgXtO0/HVvdEnvx6XBJA67YYp YIeQZbj3H39fLmmKqU7gs2qMPusUBeGSVAUq1XwJQ26mJU8SZfguHr2qI6wHiVw5SDigdl XjOy0X2Do108+Mw70dJt9abc6P5c40WxOoic2YBFNBjFAzdjDxQ2H6krdpfbwtWoBqTlts xWI7zzEd6N+ocSEeaPr1Q04hrQ4DLV9DrNdlpGQCB9ZZep/c4Fqe7h8aA8o++Xz9OWcM1H P4vgumeb8/XSbuJx6NSww/vnot07qWwFHUSjlO9gkq7ntLt2n1st7nummsHofQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700240850; a=rsa-sha256; cv=none; b=n/CGOuTx12qVavXkeERBsd1xKXGgl9m6dBQZ7L9M6J7C7y25aa2gU16NrgExhAHAV7nnIw Xys3WOniNmOj/O8141hpSNBzIRQ447ywLbIfpDcYMETNh4cKMo1XPQbAz56wcUoe/Y5ULa p/aKKuIhm0LdbljYeFNzk47ufM3Ri3ulyzwlWqXKpzvQMxBLTxl8kAvJIYPanWEtvbTf6+ tcsLGogOiIqGug8WG4LCJV+nv/0Ec1suW3pOcxqAMbsTdAew/PoiGVRFtTG/wKJFaOWOxd XueN0ufe/zKPEV/cC+OFiYgOu1iSHFLexfdrhrneDyKxTqwlfzzJ4EraRHmlow== 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 4SX3HP68ntzrP7 for ; Fri, 17 Nov 2023 17:07:29 +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 3AHH7TOP040087 for ; Fri, 17 Nov 2023 17:07:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AHH7Thn040086 for pf@FreeBSD.org; Fri, 17 Nov 2023 17:07:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pf@FreeBSD.org Subject: [Bug 274850] Packets are disappearing when both PF "divert-to" and "Dnpipe" rules are activated simultaneously Date: Fri, 17 Nov 2023 17:07:30 +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.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274850 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dfe3bb40b9e807d4010617de1ef040ba3a= a623487 commit fe3bb40b9e807d4010617de1ef040ba3aa623487 Author: Igor Ostapenko AuthorDate: 2023-11-17 16:04:01 +0000 Commit: Kristof Provost CommitDate: 2023-11-17 16:06:16 +0000 pf: fix dummynet + ipdivert use case Dummynet re-injects an mbuf with MTAG_IPFW_RULE added, and the same mtag is used by divert(4) as parameters for packet diversion. If according to pf rule set a packet should go through dummynet first and through ipdivert after then mentioned mtag must be removed after dummynet not to make ipdivert think that this is its input parameters. At the very beginning ipfw consumes this mtag what means the same behavior with tag clearing after dummynet. And after fabf705f4b5a pf passes parameters to ipdivert using its personal MTAG_PF_DIVERT mtag. PR: 274850 Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D42609 sys/netpfil/pf/pf.c | 27 +++++++-- tests/sys/netpfil/pf/divert-to.sh | 118 ++++++++++++++++++++++++++++++++++= +++- 2 files changed, 139 insertions(+), 6 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=