I have PF configured and working with rule sets that are logged.
Where is PF logging to? How do I check these logs? How do I configure them?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
Packet filter doesn't log on any file. It does log on a network interface named
pflog0 (a special device in Unix-lang), see
You turn on this interface with:
/usr/bin/sudo ifconfig pflog0 create
You suppress it with:
/usr/bin/sudo ifconfig pflog0 destroy
You can follow what does packet filter logs on this interface with
/usr/bin/sudo tcpdump -i pflog0
If you want to go any further with PF and without writing your own configuration files, I highly recommand to test Murus.
For macOS 10.12 the tcpdump command for the logs appears to be broken. Wireshark can be used or Pfloggerd see https://discussions.apple.com/thread/7905793