Date: Fri, 7 Jun 2024 13:54:29 -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: <CAFbbPuj4cndm3Ak0vhYYYzh7-12gw8M96FHWG0ox0sJunjG4tw@mail.gmail.com> In-Reply-To: <CAFbbPujTFWmnhPfJDQV3Q1-YPWPV8dZ0pyKn=qgBzcaG_Cr7bA@mail.gmail.com> References: <2207a201-691f-43c5-b76a-565af11ab9f8@cloudzeeland.nl> <CAFbbPujTFWmnhPfJDQV3Q1-YPWPV8dZ0pyKn=qgBzcaG_Cr7bA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Jun 7, 2024 at 1:53 PM Paul Procacci <pprocacci@gmail.com> wrote:
>
>
> On Fri, Jun 7, 2024 at 1:41 PM 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
>
> --
> __________________
>
> :(){ :|:& };:
>
Ack!!! abort abort!
ipfw add <rulenum> deny all from 1.184.192.0/18 <http://1.184.0.0/18> to
any
There ya go.
~Paul
--
__________________
:(){ :|:& };:
[-- Attachment #2 --]
<div dir="ltr"><div><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 7, 2024 at 1:53 PM Paul Procacci <<a href="mailto:pprocacci@gmail.com">pprocacci@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 7, 2024 at 1:41 PM Jos Chrispijn <<a href="mailto:josc@cloudzeeland.nl" target="_blank">josc@cloudzeeland.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div bgcolor="#FFFFFF">
<font size="2" face="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="http://1.184.0.0/18" target="_blank">1.184.0.0/18</a> to any<br><br></div><div>Replace <rulenum> accordingly.</div><div><br><br></div><div>~Paul<br><br></div><div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">__________________<br><br>:(){ :|:& };:</div></div></div></div>
</blockquote></div><br clear="all"></div>Ack!!! abort abort!<br><br>
ipfw add <rulenum> deny all from <a href="http://1.184.0.0/18" target="_blank">1.184.192.0/18</a> to any
<br><br></div><div>There ya go.</div><div><br></div><div>~Paul<br></div><div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">__________________<br><br>:(){ :|:& };:</div></div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPuj4cndm3Ak0vhYYYzh7-12gw8M96FHWG0ox0sJunjG4tw>
