Tuesday, May 26, 2020

Re: Restore pf tables metadata after a reboot

On Tue, May 26, 2020 at 11:25:21PM +0200, Anders Andersson wrote:
> On Tue, May 26, 2020 at 2:14 PM Walter Alejandro Iglesias
> <wai@roquesor.com> wrote:
> >
> > I understand that this command:
> >
> > # pfctl -t spam -T expire <seconds>
> >
> > Takes in care the "Cleared" date:
> >
> > # pfctl -t spam -vT show
> > ___.___.22.65
> > Cleared: Mon May 25 16:10:22 2020
> > ___.___.167.62
> > Cleared: Mon May 25 16:10:22 2020
> > [...]
> >
> > Is there a way to save and restore tables metadata after a reboot
> > preserving those dates?
>
> Isn't this what pfctl -S and -L does?

I *guess* what pfctrl -S does is to save in a file the same you see in
'pfctl -s states' output but in binary format.

No comments:

Post a Comment