Configuring IPFW IP range

Maciej Suszko maciej at suszko.eu
Sun Apr 4 15:15:49 UTC 2010


Carmel NY <carmel_ny at hotmail.com> wrote:
> This is my first attempt at configuring IPFW. I have it up and
> running; however, I am not quite sure how to accomplish configuring
> it to block an IP range.
> 
> Assume an IP range: 219.128.0.0 to 219.137.255.255
> 
> That is an actual range: CHINANET Guangdong province network
> 
> I want to block the entire range. I am not sure how to do it in IPFW.
> I have read the 'man' pages; however, I am not getting the syntax
> correct since I cannot get the range added.

#v+
tlhscd at arsenic:~ % ipcalc 219.128.0.0 - 219.137.255.255
deaggregate 219.128.0.0 - 219.137.255.255
219.128.0.0/13
219.136.0.0/15
#v-
-- 
regards, Maciej Suszko.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100404/695bd332/signature.pgp


More information about the freebsd-questions mailing list