From nobody Thu Aug 25 09:46:30 2022 X-Original-To: freebsd-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 4MCylt4P02z4bLv4; Thu, 25 Aug 2022 09:46:34 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [IPv6:2001:678:618::40]) (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 "plan-b.pwste.edu.pl", Issuer "GEANT OV RSA CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MCyls4Vfjz3kL2; Thu, 25 Aug 2022 09:46:33 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from [IPV6:2a02:22e0:cf00:1ff:a4cc:8dd9:9ea2:dad0] (mzar@[IPv6:2a02:22e0:cf00:1ff:a4cc:8dd9:9ea2:dad0]) (authenticated bits=0) by plan-b.pwste.edu.pl (8.17.1/8.17.1) with ESMTPSA id 27P9kUuq054445 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 25 Aug 2022 11:46:31 +0200 (CEST) (envelope-from zarychtam@plan-b.pwste.edu.pl) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plan-b.pwste.edu.pl; s=plan-b-mailer; t=1661420791; bh=G1SlgJ1zQ1JAsdpm++Tsb9mYTTw8gw0dTTF6Q4JGXO4=; h=Date:To:References:From:Subject:In-Reply-To; b=l58NrZYooVM3b4QP7/U1UEuK9CI//vecPz4VYSOUgF3IlDbwTrMXNcSw4lsiAzeTF 2uoImQ7cQYGMBcQTuu1eIA6KSQWnNo1Rzw/ZFBOpesZ40RBbDCbzBZlZPuNOND3gq4 hgOtSZKEuVCeDjCxcMk12nKTQnKWcRFsOWOWTbqA9BIU4WWRv7MdslilS1eBnAutGC +7EhzZ84GSlmYYGjNkN1cBrFmOxBPTOcfcT9vxluoXgBT/6AwlM1b+wamA243VaMFV lFApZQRFlUpGL3DhE+JPh1xzX2Ghny+xfARPdScLhX2M6TSjChmtaer9gs7f1T0pni uZv1Xm1Ov3n8w== Message-ID: <59f85cee-aa5f-f59b-a31d-f2c146eeb086@plan-b.pwste.edu.pl> Date: Thu, 25 Aug 2022 11:46:30 +0200 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: pl To: =?UTF-8?Q?Carlos_L=c3=b3pez_Mart=c3=adnez?= , freebsd-net@FreeBSD.org, freebsd-pf@freebsd.org References: <80c07d5f-0fe3-03b5-28ed-b714ffa9438a@plan-b.pwste.edu.pl> From: Marek Zarychta Subject: Re: How to apply brute force rate limitings with rdr and pass rules under FreeBSD 13? In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------qk073AZS5wSvyiyj40vItIs0" X-Rspamd-Queue-Id: 4MCyls4Vfjz3kL2 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=plan-b.pwste.edu.pl header.s=plan-b-mailer header.b=l58NrZYo; dmarc=pass (policy=none) header.from=plan-b.pwste.edu.pl; spf=none (mx1.freebsd.org: domain of zarychtam@plan-b.pwste.edu.pl has no SPF policy when checking 2001:678:618::40) smtp.mailfrom=zarychtam@plan-b.pwste.edu.pl X-Spamd-Result: default: False [-4.77 / 15.00]; SIGNED_PGP(-2.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-0.97)[-0.971]; DMARC_POLICY_ALLOW(-0.50)[plan-b.pwste.edu.pl,none]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; R_DKIM_ALLOW(-0.20)[plan-b.pwste.edu.pl:s=plan-b-mailer]; MIME_BASE64_TEXT(0.10)[]; FROM_HAS_DN(0.00)[]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[freebsd-pf@freebsd.org,freebsd-net@FreeBSD.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:206006, ipnet:2001:678:618::/48, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[plan-b.pwste.edu.pl:+]; HAS_ATTACHMENT(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_TO(0.00)[outlook.com,FreeBSD.org,freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------qk073AZS5wSvyiyj40vItIs0 Content-Type: multipart/mixed; boundary="------------T4qkFxbWjbQ6ihUgL6neW1J6"; protected-headers="v1" From: Marek Zarychta To: =?UTF-8?Q?Carlos_L=c3=b3pez_Mart=c3=adnez?= , freebsd-net@FreeBSD.org, freebsd-pf@freebsd.org Message-ID: <59f85cee-aa5f-f59b-a31d-f2c146eeb086@plan-b.pwste.edu.pl> Subject: Re: How to apply brute force rate limitings with rdr and pass rules under FreeBSD 13? References: <80c07d5f-0fe3-03b5-28ed-b714ffa9438a@plan-b.pwste.edu.pl> In-Reply-To: --------------T4qkFxb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V0gDQp3aGljaCBoYXNuJ3QgYmVlbiBwdXJnZWQgZnJv bSBTb3VyY2VGb3JnZSB5ZXQuDQoNClsxXSBodHRwOi8vb3BlbmJzZHBsLnNvdXJjZWZvcmdl Lm5ldC93d3cvZmFxL3BmL3BsL3Jkci5odG1sDQotLSANCk1hcmVrIFphcnljaHRhDQo= --------------T4qkFxbWjbQ6ihUgL6neW1J6-- --------------qk073AZS5wSvyiyj40vItIs0 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEnjwyTmqn2oNX6C8qHZW8vIFppoIFAmMHRPYFAwAAAAAACgkQHZW8vIFppoJ4 OAgAwYZ+ARQfPnho2L62rCwhBSMsT81/QZOcGFEMy9YuCqDGFdJ7kShi2U1OdYNSlK+HJZFdli4U YpQ+SpZnw6b8w0xe83DekHqEbP54VQ55/8EEf3yMK19apbUgBx+swHeAzanneYULgWgHHx4TR1JT /5gVmOrv5ziiYS7KFXpwrL3iXB4lDHt5uC+ltgIChHDdfd/brOvDByev0r9gMaqB9dGW4V3ry8t3 n+7buFSlUy5+TgF1P86F2/MrceHFI9nyR0nn4bQOAAsKVuk438qJp5jDqvK/kTc5oH6aqVsl4H9p cJ3GRd2vQtV8NwygEq7p+DlVDRoL+9svqEVnbV5LMA== =+8dx -----END PGP SIGNATURE----- --------------qk073AZS5wSvyiyj40vItIs0--