bin/120720: [patch] [ipfw] unbreak POLA for ipfw table list

Eugene Grosbein eugen at kuzbass.ru
Tue Feb 19 04:20:04 UTC 2008


The following reply was made to PR bin/120720; it has been noted by GNATS.

From: Eugene Grosbein <eugen at kuzbass.ru>
To: Julian Elischer <julian at elischer.org>
Cc: Vadim Goncharov <vadim_nuclight at mail.ru>, freebsd-ipfw at freebsd.org,
        bug-followup at freebsd.org
Subject: Re: bin/120720: [patch] [ipfw] unbreak POLA for ipfw table list
Date: Tue, 19 Feb 2008 11:10:37 +0700

 On Mon, Feb 18, 2008 at 10:32:32AM -0800, Julian Elischer wrote:
 
 > that was me..
 > It is my memory that
 > before that time tableargs were only used in 16 bit form.
 > there were no users in ipfw of the full 32 bit field.
 
 In RELENG_4, they are 32bit.
 
 > I did not consider that someone would put a 32 bit number
 > in there just to print it out again.
 > (what would you do that for?)
 
 It's very suitable for automatic time-bounded blocking.
 A trigger adds IP being blocked to ipfw table with 32-bit value
 that is "time-to-live" value for this table entry, and there is a rule
 like this:
 
 ipfw add 1000 deny ip from 'table(1)' to any
 
 Cron periodically runs another script that lists the table
 and removes entries with time in the past.
 
 Thank you for fixing that!
 
 Eugene Grosbein


More information about the freebsd-ipfw mailing list