what do you do to preserve pf tables over reboot? (spamd)

Graham Toal <[email protected]>
Newsgroups gmane.mail.spam.greylist.user
Message-ID <[email protected]>
On rebooting a system running OpenBSD spamd, the contents of
<spamd> and <spamd-white> will be lost.

The obvious thing that springs to mind is to do something like

pfctl -T show -t spamd > <somewhere>/spamd.txt

from cron every five minutes, then reload it with

pfctl -T add -t spamd < <somewhere>/spamd.txt

on system boot up.

Seems rather clunky; is there a neater way?

I thought at first this was what the "persist" keyword in pf.conf was for,
but it's not.  Giving a filename and persist does not write the updated
table back to the filename, though that would be a nice feature :-)

What do you all do?  Do you just lose the greylisting tables on reboot
and live with the delay as you slowly rebuild them?


Graham
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.