From nobody Wed Feb 07 08:55:54 2024 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 4TVDVM0n7Hz599MB for ; Wed, 7 Feb 2024 08:55:55 +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 4TVDVL69k3z4rbH for ; Wed, 7 Feb 2024 08:55:54 +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=1707296154; 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=rPFy6r8Z6rJnrGPyL3f9VO1gvaiHvUC2QNGLa371jVk=; b=p4vxkTE8baGymhrk/tP2I72SXUyUZZRs42qzLXwq7d5DjVspjSGWiI1c5z3+WIIN9NbluY /4oopbyEud+2Y69a4Z1cwsTPejNF8bXDznRewrevIpo227DWC0xcMm+DuyTmWyZpkOiUT8 FQ/FX1opOFHd/AC9cqXewp0pKXJ3pZ843waQONvX6s+ImEyJTulQkxPvTC8F5lX7wSs+tL NDVYeAuUVFgYdXpFoGRIRFavK4arAibB2tUpZpdxcO1OrwikF9wAu2XM/L6uGtOaTzncVS 5iNQl1lA/Qds5j8moKjicZknKffSaIkM6LHwJVP429y1eCk2f1om7FwAPxE6IQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707296154; a=rsa-sha256; cv=none; b=NVcWgezpkTxw/BZq3SM6p/SjYNDQjT4hyl6xNtHVzo+a8trH/iE49nUoprUuNJyey9P5NA W4bhpTQ6X/xQo6rzYlmfRp9bsz0xk8KBlTgVwat5RVkE8tArdc9iSamkp7a1Hh2+IWdZbm QX+I29IM/6atkiI+tpTmZOEoSRiP6gLxno+94kp9YC3X1fl+x5iJ3fw2RkHhfoFA73PkOQ +m05xISyGPqIf8I27K430IVZLCLYI9Lwg0kHUm/MAcOVscSgCrR0PWz5sbSPcSw4Mdk4WC VEHq1wzKBzDL21aVwWxDJtIF+qIifQ/N0VMp6WI3aUCRnNl7nSS9mi/a+D4i5Q== 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 4TVDVL5Dglz11Hw for ; Wed, 7 Feb 2024 08:55: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 4178tsmK046618 for ; Wed, 7 Feb 2024 08:55:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4178ts7b046616 for pf@FreeBSD.org; Wed, 7 Feb 2024 08:55: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: pf@FreeBSD.org Subject: [Bug 276856] pf no longer re-assembles fragments by default Date: Wed, 07 Feb 2024 08:55:54 +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 Some People X-Bugzilla-Who: michal.os@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D276856 Michal Scigocki changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michal.os@hotmail.com --- Comment #1 from Michal Scigocki --- I've been able to reproduce this issue. It happens in 14.0-RELEASE and 14.0-STABLE. It may be that pf is not processing (possibly dropping) fragme= nted packets by default. But I haven't checked beyond my ICMP example. This does appear fixed in 15.0-CURRENT, but you would need to check 15.0, mgrooms, and confirm. To reproduce, enable and start pf and pflog, use this pf.conf: block log proto icmp Then send a ping large enough to be fragmented to the pf host from an exter= nal host: ping -c 1 -s 2000 pfhost By default, in 13.2-RELEASE and 15.0-CURRENT, pf will log the blocked icmp request as two fragments. In 14.0-RELEASE and 14.0-STABLE, nothing gets log= ged. A regular small ping that doesn't get fragmented, ping -c 1 pfhost, will be logged. To log the fragmented packets in 14.0, you need to use "scrub fragment no reassemble" in pf.conf. You can log the reassembled packet in 14.0 with eit= her the "set reassemble yes" option, or "scrub" or the equivalent "scrub fragme= nt reassemble". Regarding documentation, the 14.0 pf.conf man page is missing the "set reassemble yes | no [no-df]" option description, however it is mentioned in= the 14.0-RELEASE release notes: https://www.freebsd.org/releases/14.0R/relnotes/#network-general . The 15.0= man page has the new description. Also the pf.conf man page on both 14.0 and 15.0 for the pre-FreeBSD 14 scrub ruleset directive specifies using "no fragment reassemble", which does not work, "pfctl -n -f pf.conf" will throw a syntax error. The working syntax is "fragment no reassemble". --=20 You are receiving this mail because: You are the assignee for the bug.=