Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2002 13:37:57 +0100
From:      Mark <admin@asarian-host.net>
To:        <freebsd-questions@freebsd.org>
Subject:   ipfw matching
Message-ID:  <200211121238.GACCC2S56488@asarian-host.net>

next in thread | raw e-mail | index | archive | help
I have a quick question on the way ipfw matches IP masks. If I give this IP
address:

    12.144.51.128/17

Am I then correct in thinking it will match all IP addresses from
12.144.51.128 to 12.144.51.255? Or will it start matching from 12.144.51.0?
(not what I want).

Now for the harder question (I guess there is a second question, after all).
If I want to match from 12.51.0 to 12.51.15 (and all their hosts
underneath), would I write this:

    12.51.0.0:255.255.240.255 ?

I really wanna crack down on some spammers, but not waste too many ipfw
rules on it.

Thanks!

- Mark


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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