From nobody Thu Aug 25 10:16:59 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 4MCzR40Mnlz4Z9rD for ; Thu, 25 Aug 2022 10:17:04 +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 4MCzR25NTlz3qFj for ; Thu, 25 Aug 2022 10:17:02 +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 27PAH0Ob054564 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 25 Aug 2022 12:17:00 +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=1661422620; bh=sF82jOpJKsNyve6ooucctPiCQk6h5UA8PMIu+3qVVUA=; h=Date:Subject:To:References:From:In-Reply-To; b=aK0DjRFqzFrSf6G1D/h4TjSar2O0lBWpLFk3vHFozNqpdDQZiuvu32S6XOyimfx4/ dzfqzQifY6JLTeGgOPi9H/7zNvJCr74oFXYe13T10pkWFr12gI18tWWFsbssVLZdV/ miZHKa9amfb7GNnleqp0kwjWfS3uojSTRHyON32GwpXcpbwDcw1jJNcW7/dw3ToLZv tt2iGvtDchVqhymwMImARwFfILcpGRYIjk60YptgX9l6qpTg/e1Nz0d+xRG4HQyMSY vz3fRdO+p8ks3/akJxqTa3E1XwvPa+bTlIpexIo5QucJkwiyVRHY6lEEcX4HkQOgqF r+gVqEm+tsvwg== Message-ID: <0ddd0b1e-4288-204c-bf63-517741a9e523@plan-b.pwste.edu.pl> Date: Thu, 25 Aug 2022 12:16:59 +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 Subject: Re: How to apply brute force rate limitings with rdr and pass rules under FreeBSD 13? Content-Language: en-US To: =?UTF-8?Q?Carlos_L=c3=b3pez_Mart=c3=adnez?= , freebsd-pf@freebsd.org References: <80c07d5f-0fe3-03b5-28ed-b714ffa9438a@plan-b.pwste.edu.pl> <59f85cee-aa5f-f59b-a31d-f2c146eeb086@plan-b.pwste.edu.pl> From: Marek Zarychta In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------mO3FKeblzqOnEZYdQ69FAi1c" X-Rspamd-Queue-Id: 4MCzR25NTlz3qFj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=plan-b.pwste.edu.pl header.s=plan-b-mailer header.b=aK0DjRFq; 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)[-1.000]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; 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)[]; R_SPF_NA(0.00)[no SPF record]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-pf@freebsd.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[plan-b.pwste.edu.pl:+]; HAS_ATTACHMENT(0.00)[]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:206006, ipnet:2001:678:618::/48, country:PL]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[outlook.com,freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------mO3FKeblzqOnEZYdQ69FAi1c Content-Type: multipart/mixed; boundary="------------7gNtgAQ8VA3dFUNwg0F5fIg0"; protected-headers="v1" From: Marek Zarychta To: =?UTF-8?Q?Carlos_L=c3=b3pez_Mart=c3=adnez?= , freebsd-pf@freebsd.org Message-ID: <0ddd0b1e-4288-204c-bf63-517741a9e523@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> <59f85cee-aa5f-f59b-a31d-f2c146eeb086@plan-b.pwste.ed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ZCB3b3JrLg0KDQoNCi0tIA0KTWFyZWsgWmFyeWNo dGENCg== --------------7gNtgAQ8VA3dFUNwg0F5fIg0-- --------------mO3FKeblzqOnEZYdQ69FAi1c Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEnjwyTmqn2oNX6C8qHZW8vIFppoIFAmMHTBwFAwAAAAAACgkQHZW8vIFppoKh owf/cRzPaB5jHH3IvSe3aFmUjfvaohYA3jDsavQv+Rqw1nmp9Gfj/+jBB7WqTzCi1JviSW2QuFLA u85axz61w73xx4MBm6TcGifxAOvG4C8MvzSo2Pr5AWwzruZ8wplvNI3ttz5oG1zQUXwmVMufS+YQ jFjq2ZZsyiUqTuy4sQ8BdmWZg+FZYC+0MdLbiZp/Tgzu+McGF09GjAh8xib8hS9Ipx61l25WzWlo edJOnzxcfw79Qm/nmJ1ncERbuaD3LoBpzqFiBCoVtseTGtmitkDoCD6uaOixm/qKXVhZulm0hFoJ cNRRmcJ+Iu8cLHXd23mZo869QLWw55hhi7ioMEFsTw== =+x0T -----END PGP SIGNATURE----- --------------mO3FKeblzqOnEZYdQ69FAi1c--