[CDBUG-talk] pfctl -t table -T add foo.bar (so what happens on reboot?)
jonathan.franks at gmail.com
Thu Oct 6 09:17:09 EDT 2005
On 9/30/05, Jameel Akari <jakari at bithose.com> wrote:
> > I was just working with tables today for the first time, and using pfctl
> > add / remove entries. I was wondering, though, are these updates simply
> > on reboot, or are they retained?
> > Just wondering. It seems to me that they must be retained, but I haven't
> Nope, not if you're adding them like that. Tables only exist in memory.
> What you want is a persistent table wih an external file:
> table <mytable> persist file "/etc/mytablefile"
> You add/edit/append entries in the external file (mytablefile). It will
> be reloaded when pf is reloaded, or when pfctl is told to reread it:
> /sbin/pfctl -t mytable -Treplace -f /etc/mytablefile
Hey thanks for the info. I've managed to dump the table to a file and
reconfigure. I was reading something on misc@, and I'm now thinking of
adding a cron job to replace the file with the table contents every night.
I'm having great fun with this.
Anyhow thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CDBUG-talk