Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2016 20:41:56 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        JosC <bsduser@cloudzeeland.nl>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: IPFW deny ip range
Message-ID:  <44powt3wd7.fsf@lowell-desk.lan>
In-Reply-To: <56A2A4F5.3030907@cloudzeeland.nl> (JosC's message of "Fri, 22 Jan 2016 22:53:57 %2B0100")
References:  <56A2A4F5.3030907@cloudzeeland.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
JosC <bsduser@cloudzeeland.nl> writes:

> I have this ip range that I would like to block (example ip):
>
> 123.xx.xx.xx
> 123.1.xx.xx
> 123.1.1.xx
>
> Can someone tell me how I can define best in ipfw.rules?

If you're using ipfw, putting those things in a table and blocking from
the table is the way to do this. The stock /etc/rc.firewall uses at
least one table, so you can look at that as an example.

I've never heard of ipfw.rules, though, so you may be a little confused.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44powt3wd7.fsf>