How to make pflog interface permanent

I was searching preaty long time for solution of my problem that i described bellow:
Every time I have created log interface by typing:

ifconfig pflog2 create

also redirect log from it to the file

pflogd -i pflog2 -f /var/log/2.log

and restarted the system – configurtion was cleared …
I tried many things to achieve success …. no results
Finally i decided to do it in the funny way :

echo “ifconfig pflog2 create” >>/etc/rc.local
echo “pflogd -i pflog2 -f /var/log/2.log” >>/etc/rc.local

It’s functioning.
I couldn’t find better way to do that.

Bookmark the permalink.

Comments are closed.