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

Eugene Grosbein eugen at kuzbass.ru
Mon Feb 18 20:35:07 PST 2008


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