blocking a string in a packet using ipfw
Oliver Fromme
olli at lurza.secnetix.de
Fri Sep 15 05:44:48 PDT 2006
Willem Jan Withagen wrote:
> Julian Elischer wrote:
> > > Forgot to mention: 4.7-PRERELEASE :(
> >
> > ugh... no tables
> > and 45000 lines will be bad.
Not necessarily ...
> Over that time I collected over 50.000 IP's which all ended up
> in IPFW. :) The box (PIII, 750 Mhz, 512Mb) started using a lot
> of system and interrupt time, but it survived it all.
I once wrote a small tool that took a bunch of IP addresses
on stdin and converted it into IPFW "skipto" rules forming
a binary tree. So, in the worst case, only 32 rules had to
be checked for each packet, instead of 50,000.
Of course, with IPFW2's table feature, that tool of mine
became obsolete.
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"I have stopped reading Stephen King novels.
Now I just read C code instead."
-- Richard A. O'Keefe
More information about the freebsd-net
mailing list