From owner-freebsd-pf@freebsd.org Sat Dec 12 13:42:27 2020 Return-Path: Delivered-To: freebsd-pf@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 56C7B4B5DC3 for ; Sat, 12 Dec 2020 13:42:27 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CtTNf3qMhz3Cll for ; Sat, 12 Dec 2020 13:42:26 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2001:470:7a58::a5b0:583b:a58d:489d] (unknown [IPv6:2001:470:7a58:0:a5b0:583b:a58d:489d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 062061962D for ; Sat, 12 Dec 2020 14:42:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=andric.com; s=201904; t=1607780539; bh=1Bzwo9f1q5G1+hUzZfvAnOjZUVT3XfzPeCa5twiExfE=; h=From:Subject:Date:References:To:In-Reply-To:From; b=XBQ3GWIeklkjWZVH3kVfmAAbHfX9+8xh2ccE8za+ElSuGINf6QnLvgey/ew9lU6LV uSdKgVGvvBq/79Yp3a5uciX7sbznVcIxy3tXbswDhooBp1kAFYwU2AIfskDK5J1ghJ NnnOaHZA6H1H2/x16IhRS1h6ry/J8137FkkI+BXCLDeUUMkShrtB+lsWGJIXa9B3nq kUWX1TPCFYIg3IApsFvxyW3iIyvfkK4cfgwGFY8FVJvKvaza6ZJswYIW/20tZ5dF0y 4KjI9/QYTEpiQU+NYdc9sXERgLloHev9pBeZj0DZoDpR3FsHsKh2ypkUW3qcjtt8a+ IR6lt9Er+r4/g== From: Dimitry Andric Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: net.pf.request_maxcount not working after upgrading from 12.1-RELEASE to 12.2 RELEASE. Date: Sat, 12 Dec 2020 14:42:18 +0100 References: <02311a9b-e669-0071-f47e-fc1701749213@delluomo-morettin.com> <7394e747-7741-daa8-cf07-4aed2eee76d1@delluomo-morettin.com> To: freebsd-pf@freebsd.org In-Reply-To: <7394e747-7741-daa8-cf07-4aed2eee76d1@delluomo-morettin.com> Message-Id: X-Mailer: Apple Mail (2.3445.104.17) X-Rspamd-Queue-Id: 4CtTNf3qMhz3Cll X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=andric.com header.s=201904 header.b=XBQ3GWIe; dmarc=pass (policy=none) header.from=andric.com; spf=pass (mx1.freebsd.org: domain of dimitry@andric.com designates 87.251.56.140 as permitted sender) smtp.mailfrom=dimitry@andric.com X-Spamd-Result: default: False [-0.47 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[andric.com:s=201904]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pf@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[87.251.56.140:from:127.0.2.255]; ARC_NA(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:87.251.56.140]; DKIM_TRACE(0.00)[andric.com:+]; DMARC_POLICY_ALLOW(-0.50)[andric.com,none]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(0.03)[0.033]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[87.251.56.140:from]; ASN(0.00)[asn:12859, ipnet:87.251.32.0/19, country:NL]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-pf] X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2020 13:42:27 -0000 On 12 Dec 2020, at 10:55, Segreteria = wrote: >=20 > I can no longer load pf at boot without workarounds as after upgrade = to 12.2-RELEASE net.pf.request_maxcount=3D300000 in /boot/loader.conf is = not loaded before pf starts. >=20 > Can somebody explain exactly why is this happening? Is this a new = policy of this kernel parameter? It seems to have changed with = https://svnweb.freebsd.org/changeset/base/364456: ------------------------------------------------------------------------ r364456 | kp | 2020-08-21 15:11:33 +0200 (Fri, 21 Aug 2020) | 7 lines MFC r355744: pf: Make request_maxcount runtime adjustable There's no reason for this to be a tunable. It's perfectly safe to change this at runtime. ------------------------------------------------------------------------ > What is the suggested way to face this change? I believe it must be set in sysctl.conf(5) after this change. -Dimitry