How limit pflog size
-
how i can limit pflog size in /var/log path or rotate this file (clean this file)
-
for clean and rotate, try to create a script like this and add it in cron
#!/bin/sh
DATE=date '+%d-%m-%Y'
cp /var/log/pflog /var/log/pflog-$DATE
:> /var/log/pflog -
That file isn't normally there, some change must have been made or package installed that changed the default behavior.
Normally the pf log is written to /var/log/filter.log which is a binary circular log that can never grow in size.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.