Re: Best way to block a long list of IPs?



At 03:07 PM 6/20/2006, Luigi Rizzo wrote:

there are efficient tables in ipfw as well, which Ruslan implemented
some time ago -- yet another reason we should be grateful to him

How would I build a table of arbitrary IP addresses and be able
to update it atomically (i.e. add and delete individual addresses
and not lose all filtering when there was a modification)?

and also, if your address are in the same /24 subnet, you can use
the ipfw address set format which looks like this
1.2.3.0/24{10,20,21,30,34,55}
and can deal in constant time for up to 256 randomly distributed hosts.

Not random enough. Each of these IP addresses could be anywhere in
the 32 bit IPv4 address range.

--Brett Glass

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Problem with VB Exchange applications
    ... I can't find a reason for this problem because the code is the same to ... I'd be very grateful if anyone could help me. ... the 5th person no matter who that person is, or is it a particular 5th ...
    (microsoft.public.exchange.applications)
  • Re: Best way to block a long list of IPs?
    ... Brett Glass writes: ... some time ago -- yet another reason we should be grateful to him ... member of the first RFC 1149 implementation team ...
    (freebsd-net)
  • Re: Help! Advice needed with Vauxhall Astra. Problem with Turbo
    ... I own a 2003 Vauxhall Astra 2.0DTI. ... For some reason now, its seems as though the turbo isn't kicking in and ... work, i'd travelled about 10 miles, before it happened. ... i'd be most grateful. ...
    (uk.rec.cars.maintenance)
  • Re: Coal for pyro (again)
    ... Thanks, Andy! ... I'll happily send you the funds ... I'm grateful for your offer of free, but no reason to put ...
    (rec.pyrotechnics)
  • Re: Help! Advice needed with Vauxhall Astra. Problem with Turbo
    ... I own a 2003 Vauxhall Astra 2.0DTI. ... For some reason now, its seems as though the turbo isn't kicking in and ... work, i'd travelled about 10 miles, before it happened. ... i'd be most grateful. ...
    (uk.rec.cars.maintenance)