December 2007
Intermediate to advanced
184 pages
4h 45m
English
The tests you just performed showed that PF was running and hopefully that your rules behaved as expected. However, in other circumstances you may want to check that PF is actually running and review statistics about its activity. In addition to enabling and disabling PF and loading rule sets, the pfctl program offers many different types of information displays. To access these features, you use pfctl -s, adding the type of information you want to display.
The following example was taken from my home gateway while I was working on this book:
$ sudo pfctl -s info Status: Enabled for 17 days 00:24:58 Debug: Urgent Interface Stats for ep0 IPv4 IPv6 Bytes In 9257508558 0 Bytes Out 551145119 352 Packets In Passed 7004355 0 Blocked ...Read now
Unlock full access