Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: BSD pf monitoring #297

Open
z-eos opened this issue Nov 4, 2020 · 0 comments
Open

Feature request: BSD pf monitoring #297

z-eos opened this issue Nov 4, 2020 · 0 comments

Comments

@z-eos
Copy link
Contributor

z-eos commented Nov 4, 2020

BSD packet filter pf(4) has nice ctl — pfctl(8)

pfctl allows to get statistict in form of such, easyly parseble table:

> pfctl -s info  
Status: Enabled for 5 days 13:09:50           Debug: Urgent
State Table                          Total             Rate
  current entries                      920               
  searches                        65233309          136.1/s
  inserts                           576460            1.2/s
  removals                          575540            1.2/s
Counters
  match                             942134            2.0/s
  bad-offset                             0            0.0/s
  fragment                               0            0.0/s
  short                                  0            0.0/s
  normalize                              0            0.0/s
  memory                                 0            0.0/s
  bad-timestamp                          0            0.0/s
  congestion                             0            0.0/s
  ip-option                            951            0.0/s
  proto-cksum                            0            0.0/s
  state-mismatch                       143            0.0/s
  state-insert                           2            0.0/s
  state-limit                            0            0.0/s
  src-limit                              0            0.0/s
  synproxy                               0            0.0/s
  map-failed                             0            0.0/s

it looks not too hard to draw that info with RRD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant