From nobody Sat Jun 4 07:29:16 2022 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 A65B41B47A6A 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 4LFWbN6Nt5z3DPk 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 9AD37199A6 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 2547TGr5043617 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 2547TGEP043616 for net@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: net@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: CC 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: 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 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=HJMfB1MJ4Tft3dHtLjupOj7gl0wCaMpnL7H5wZPt6ew=; b=FU85ROL7dYsmbFZXt09o7GwaSy6fXu+HiOCzFcP6bOSEFAbrSnUcQUbLEFw+5RLAlgYR6y tFnSgm7qn8GqdUtnq6+LiAb/KgP76uwG95YI6RdNWqzCeDccp/nDIGLqiVicodPuNr0FGj IS2D/qPaOcBcuUoDvFn/ts8JFSbldij690dKEJLhLBOifpcjWfiFRVHuGRXqbgrezBHjUO dCcyAuprN1Q4c4CXbejj3tcqs7TlWAmVWDfQknAK9x1SCIWb/4pcBuvf4M1z922uCyQaI4 1S9XLCkj6rbOfVVU+9aHAG2UX5tpa0qEvSsn66+7H7BJ+j1+ZkBx/ioWTdnTig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654327761; a=rsa-sha256; cv=none; b=FxEtcDJu4mYk+wZtb63UvAg9GD0fGd85Guo3+EtIQccIuemPyU1UFoetScif4NPYKGxH3a WtNQ0T9mcWO0x6cpjjI7UCOGnEco1z6eT098FmRuJu0vzlZKb3feXFOk5td0QGshWoUAHw rrZN20bp57QF+R8NKw0ahwzg1kd2uzZ4LXyfXZhGPg0gHpXd6lBChCgLROUZWJnGlT8IkN 2GRM4YtnVnZ9NDsYxem4bkkRTLa4ZWWykKm2IFI29g1Jge5JI+CbWQdTJUjCb9hpW/80o3 yjwVATy7p2Fm/ikRMAgzghXpKFjxYWSrNpLlo4uewY7FMr5A/ya2yDgZMHAG/Q== 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 on the CC list for the bug.=