[nycbug-talk] pf tables

Mischa Diehm md+nycbug at mailq.de
Sun Jul 30 15:54:28 EDT 2006


Hi,

On Sun, Jul 30, 2006 at 03:52:10PM -0400, Dru wrote:
> Does anyone have a reference to or quick trick on how to have the 
> information in their pf tables survive a reboot? I'm wondering if I'm 

man pf.conf

> missing something obvious, but I just lost a few months worth of bad_hosts 
> after rebooting a box during an upgrade.
> 
> Also, is there an easy way to suck in the contents of a file to a table? I 
> do have a backup of the persist file?

exactly. quoting the manpage:

A table can also be initialized with an address list specified in
one or more external files, using the following syntax:

    table <spam> persist file "/etc/spammers" file "/etc/openrelays"
    block on fxp0 from <spam> to any

Mischa



More information about the talk mailing list