<br><br><div><span class="gmail_quote">On 9/30/05, <b class="gmail_sendername">Jameel Akari</b> <<a href="mailto:jakari@bithose.com">jakari@bithose.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>> I was just working with tables today for the first time, and using pfctl to<br>> add / remove entries. I was wondering, though, are these updates simply lost<br>> on reboot, or are they retained?<br>><br>
> Just wondering. It seems to me that they must be retained, but I haven't<br><br>Nope, not if you're adding them like that.  Tables only exist in memory.<br><br>What you want is a persistent table wih an external file:
<br><br>table <mytable> persist file "/etc/mytablefile"<br><br>You add/edit/append entries in the external file (mytablefile).  It will<br>be reloaded when pf is reloaded, or when pfctl is told to reread it:
<br><br>/sbin/pfctl -t mytable -Treplace -f /etc/mytablefile</blockquote><div><br>
<br>
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.<br>
<br>
Anyhow thanks again.<br>
<br>
-Jonathan<br>
</div><br></div>