Date: Fri, 7 Jun 2024 13:53:49 -0400 From: Paul Procacci <pprocacci@gmail.com> To: Jos Chrispijn <josc@cloudzeeland.nl> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: IPFW blocking ip ranges Message-ID: <CAFbbPujTFWmnhPfJDQV3Q1-YPWPV8dZ0pyKn=qgBzcaG_Cr7bA@mail.gmail.com> In-Reply-To: <2207a201-691f-43c5-b76a-565af11ab9f8@cloudzeeland.nl> References: <2207a201-691f-43c5-b76a-565af11ab9f8@cloudzeeland.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000f1cd3c061a507b94 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jun 7, 2024 at 1:41=E2=80=AFPM Jos Chrispijn <josc@cloudzeeland.nl>= wrote: > Can you tell me how to block in ipfw a certain ip range in one line, like > 1.184.192.0 - 1.184.255.255 > Thanks. > ipfw add <rulenum> deny all from 1.184.0.0/18 to any Replace <rulenum> accordingly. ~Paul --=20 __________________ :(){ :|:& };: --000000000000f1cd3c061a507b94 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div dir=3D"ltr"><br></div><br><div class=3D"gma= il_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jun 7, 2024 at 1:41= =E2=80=AFPM Jos Chrispijn <<a href=3D"mailto:josc@cloudzeeland.nl">josc@= cloudzeeland.nl</a>> wrote:<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex"><u></u> =20 =20 =20 <div bgcolor=3D"#FFFFFF"> <font size=3D"2" face=3D"Verdana">Can you tell me how to block in ipfw = a certain ip range in one line, like 1.184.192.0 - 1.184.255.255<br> Thanks.</font> </div> </blockquote></div><br></div>ipfw add <rulenum> deny all from <a href= =3D"http://1.184.0.0/18">1.184.0.0/18</a> to any<br><br></div><div>Replace = <rulenum> accordingly.</div><div><br><br></div><div>~Paul<br><br></di= v><div><div><span class=3D"gmail_signature_prefix">-- </span><br><div dir= =3D"ltr" class=3D"gmail_signature">__________________<br><br>:(){ :|:& = };:</div></div></div></div> --000000000000f1cd3c061a507b94--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPujTFWmnhPfJDQV3Q1-YPWPV8dZ0pyKn=qgBzcaG_Cr7bA>