Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
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

-- 
__________________

:(){ :|:& };:

[-- 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:41 PM Jos Chrispijn &lt;<a href="mailto:josc@cloudzeeland.nl">josc@cloudzeeland.nl</a>&gt; 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 &lt;rulenum&gt; deny all from <a href="http://1.184.0.0/18">1.184.0.0/18</a>; to any<br><br></div><div>Replace &lt;rulenum&gt; 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>:(){ :|:&amp; };:</div></div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPujTFWmnhPfJDQV3Q1-YPWPV8dZ0pyKn=qgBzcaG_Cr7bA>