table persist file
Volker
volker at vwsoft.com
Thu Oct 12 05:47:06 PDT 2006
On 12/23/-58 20:59, Jon Otterholm wrote:
> <div class="moz-text-flowed">Hi.
>
> I have a table in my pf.conf:
>
> table <commit> persist file "/etc/pf/commit"
>
> When I add IP's to the table nothing gets into the file even though they
> are listed in the table.
>
> Any thoughts?
>
> Info:
>
> su-2.05b# uname -a
> FreeBSD host.domain.se 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #2: Fri Sep
> 15 13:26:01 CEST 2006 user@:/usr/obj/usr/src/sys/GENERIC i386
>
> su-2.05b# pfctl -t commit -T sh
> No ALTQ support in kernel
> ALTQ related functions disabled
> XXX.XXX.XX.228
> XXX.XXX.XX.229
> XXX.XXX.XX.232
> XXX.XXX.XX.233
> XXX.XXX.XX.234
> XXX.XXX.XX.236
> XXX.XXX.XX.237
>
> su-2.05b# cat /etc/pf/commit
>
> su-2.05b# ls -la /etc/pf/commit
> -rwxrwxrwx 1 root wheel 0 Sep 26 11:06 /etc/pf/commit
>
> /Jon
>
> </div>
Jon,
you may use a command like:
`pfctl -t commit -Ts > /path/to/tablefile'
to write the contents of the table out to disk.
HTH,
Volker
More information about the freebsd-pf
mailing list