Since I want to persist one of the tables of blocked ip addresses in my pf, I have a line in my pf.conf that looks like this:
I check that it works by doing
and it gives a small list of added ip addresses
But when I do
it shows
How can the size of the file be zero bytes when there is some content in it? Is the internal implementation of pf table file persistence different?
Code:
table <bad_ips> persist file "/etc/bad_ips"
I check that it works by doing
pfctl -t bad_ips -T show
and it gives a small list of added ip addresses
But when I do
ls -lh /etc/bad_ips
it shows
-rw-r--r-- 1 root wheel 0B Sep 23 02:27 /etc/bad_ips
How can the size of the file be zero bytes when there is some content in it? Is the internal implementation of pf table file persistence different?