From nobody Sat Jun 4 07:29:16 2022 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 7915B1B47A69 for ; Sat, 4 Jun 2022 07:29:22 +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 4LFWbP0CpHz3DML for ; Sat, 4 Jun 2022 07:29:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 AF14919967 for ; Sat, 4 Jun 2022 07:29:19 +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 2547TG9M043621 for ; Sat, 4 Jun 2022 07:29:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2547TGrF043620 for pf@FreeBSD.org; Sat, 4 Jun 2022 07:29:16 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 264193] pf: scrub max-mss rule stops working (but still counts) after 13.1-RELEASE upgrade Date: Sat, 04 Jun 2022 07:29:16 +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: 13.1-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: oleg@mamontov.net X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12- 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654327761; 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=vSTSt7zQxsVUuDlwj+wTs3Rv0aVfCEUwfrI2kWiNzOk=; b=E1AHFdh89PwOSoX/6s7/5uYhhN1ddJpF/AjWLQuIojaI1ygQ5INNHO3c9H8CjwB/drSD9J Tr/r5DaeLlmJsKG03mZONGbN00U5XyPcuLINkTrgLWkvh7UtHFPFV97tmTM+xdRy4bsmC1 o1eAqvHcO62ChN4e3Z6YUJ2wk48cdG0SuUjovVBcCNMM6PwHvUHEF175hnpBnJrjwMMZJY 3hLpZjgcidkcmFL73g1BopPfs5/jbr06YDOIGe2DTXmK4lk0TOtQvLvzBRv6u24MTwjWzE NsosCEli2goOWlajks0XZhqfqHbk2EgBMDmNxALC5MKCjcKKSW+N9BkUL7EB7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654327761; a=rsa-sha256; cv=none; b=QuFk3yuXpWSOcX6D6hlmFOYfjKoxiXiBd5HHJKynRjBDlnk4X0JtGQY5EGww4XIV8L5+9C 9Jil7r46lWoCQIZXQYmXFLG9FLeb5QinS1anzP2h4+ramYH1w7xH0Q8mJfW7+tvQodPHc7 NermQzVNnRhaQ+7fAP+LS3dd5Y9JcUbGS+JnFkMPIlrW7duA6TgDFNnnCm9CqIBblVWtcC xtDBF+xBBdHj+Z3HBesUN09t18rEW4i/ECIYU7aC0Agf3zcp4f+3NYUXmIJfbnsWRcJIhB za117VngAgVsHafI1hBi8aMUH0l+4RYG7fvYuIrr1ZY/uMR/TB4YxwdA8haymA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264193 --- Comment #2 from oleg@mamontov.net --- Hello. My test case looks more complicated, sorry about this. I reproduce it in bh= yve vms freshly installed from FreeBSD-13.0-RELEASE-amd64-disc1.iso and FreeBSD-13.1-RELEASE-amd64-disc1.iso without any setup customizations. Below is the preparations (the same for 13.0 and 13.1): -------- # kldload pf # touch /etc/pf.conf # cat /tmp/pf.conf scrub on epair1b proto tcp max-mss 1380 pass out route-to (epair1b 10.0.1.1) proto tcp to port 25 # cat /etc/jail.conf mss { path =3D /; persist; vnet new; vnet.interface =3D epair0b; vnet.interface +=3D epair1b; exec.prestart =3D "ifconfig epair0 create"; exec.prestart +=3D "ifconfig epair0a inet 10.0.0.1/24"; exec.prestart +=3D "ifconfig epair1 create"; exec.prestart +=3D "ifconfig epair1a inet 10.0.1.1/24"; exec.start =3D "ifconfig epair0b inet 10.0.0.2/24"; exec.start +=3D "ifconfig epair1b inet 10.0.1.2/24"; exec.start +=3D "route add default 10.0.0.1"; exec.start +=3D "service pf onestart"; exec.start +=3D "pfctl -f /tmp/pf.conf"; exec.poststop =3D "ifconfig epair0a destroy"; exec.poststop +=3D "ifconfig epair1a destroy"; } # service jail onestart mss Starting jails: mss. -------- Now testing on 13.0-RELEASE: -------- # jexec mss telnet -N 1.2.3.4 25 Trying 1.2.3.4... # tcpdump -ni epair1a 10:18:27.724252 IP 10.0.0.2.43516 > 1.2.3.4.25: Flags [S], seq 1151646480, = win 65535, options [mss 1380,nop,wscale 6,sackOK,TS val 518156570 ecr 0], lengt= h 0 ---------------------------- The same on 13.1-RELEASE: -------------------------- # jexec mss telnet -N 1.2.3.4 25 Trying 1.2.3.4... # tcpdump -ni epair1a 10:24:27.627525 IP 10.0.0.2.42802 > 1.2.3.4.25: Flags [S], seq 2537751742, = win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 185378837 ecr 0], lengt= h 0 ---------------------------- I believe you can see the difference (mss 1380 vs 1460). Thank you. --=20 You are receiving this mail because: You are the assignee for the bug.=