pfstat.conf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # collect
  2. # global
  3. # states entries|searches|inserts|removals [diff]
  4. # counters match|bad-offset|fragment|...|synproxy [diff]
  5. # (see pfctl -si output, same strings)
  6. # interface name pass|block packets|bytes in|out v4|v6 [diff]
  7. # queue name passed|dropped|other packets|bytes|number [diff]
  8. collect 1 = interface "em0" pass bytes in ipv4 diff
  9. collect 2 = interface "em0" pass bytes out ipv4 diff
  10. collect 3 = global states entries
  11. image "/var/www/htdocs/benzedrine.ch/pfstat-day-small.jpg" {
  12. from 24 hours to now
  13. width 300 height 200
  14. left
  15. graph 1 bps "in" "bits/s" color 0 192 0 filled,
  16. graph 2 bps "out" "bits/s" color 0 0 255
  17. right
  18. graph 3 "states" "entries" color 192 192 0
  19. }
  20. collect 15 = global counters match diff
  21. collect 16 = global counters bad-offset diff
  22. collect 17 = global counters fragment diff
  23. collect 18 = global counters short diff
  24. collect 19 = global counters normalize diff
  25. collect 20 = global counters memory diff
  26. collect 21 = global counters bad-timestamp diff
  27. collect 22 = global counters congestion diff
  28. collect 23 = global counters ip-option diff
  29. collect 24 = global counters proto-cksum diff
  30. collect 25 = global counters state-mismatch diff
  31. collect 26 = global counters state-insert diff
  32. collect 27 = global counters state-limit diff
  33. collect 28 = global counters src-limit diff
  34. collect 29 = global counters synproxy diff
  35. image "/var/www/htdocs/benzedrine.ch/pfstat-errors-day-small.jpg" {
  36. from 24 hours to now
  37. width 300 height 200
  38. left
  39. graph 15 "match" "/s" color 192 0 192,
  40. graph 17 "frag" "/s" color 0 192 192,
  41. graph 23 "iopt" "/s" color 0 0 255,
  42. graph 24 "csum" "/s" color 192 192 0,
  43. graph 25 "mism" "/s" color 255 0 0
  44. right
  45. graph 15 "match" "/s" color 0 192 0
  46. }