On 26.05., Walter Alejandro Iglesias 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?
>

You can save the list of IPs in a table and reload it after a reboot as
described here: https://www.bsdhowto.ch/savepftables.html

As there is no way to save the dates the date for each IP will be set to
the current date and time when load happens.

Cheers,
Bruno

Reply via email to