You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.1 KiB

  1. config nlbwmon
  2. # Interval at which the temporary in-memory database is committed to
  3. # the persistent database directory
  4. option commit_interval 24h
  5. # Interval at which traffic counters of still established connections
  6. # are refreshed from netlink information
  7. option refresh_interval 30s
  8. # Storage directory for the database files
  9. option database_directory /var/lib/nlbwmon
  10. # Amount of database generations to retain. If the limit is reached,
  11. # the oldest database files are deleted.
  12. option database_generations 10
  13. # Accounting period interval; may be either in the format YYYY-MM-DD/NN
  14. # to start a new accounting period exactly every NN days, beginning at
  15. # the given date, or a number specifiying the day of month at which to
  16. # start the next accounting period.
  17. #option database_interval '2017-01-17/14' # every 14 days, starting at Tue
  18. #option database_interval '-2' # second last day of month, e.g. 30th in March
  19. option database_interval '1' # first day of month (default)
  20. # The maximum amount of entries that should be put into the database,
  21. # setting the limit to 0 will allow databases to grow indefinitely.
  22. option database_limit 10000
  23. # Whether to preallocate the maximum possible database size in memory.
  24. # This is mainly useful for memory constrained systems which might not
  25. # be able to satisfy memory allocation after longer uptime periods.
  26. # Only effective in conjunction with database_limit, ignored otherwise.
  27. #option database_prealloc 0
  28. # Whether to gzip compress archive databases. Compressing the database
  29. # files makes accessing old data slightly slower but helps to reduce
  30. # storage requirements.
  31. #option database_compress 1
  32. # Protocol description file, used to distinguish traffic streams by
  33. # IP protocol number and port
  34. option protocol_database /usr/share/nlbwmon/protocols
  35. # List of local subnets. Only conntrack streams from or to any of these
  36. # subnets are counted. Logical interface names may be specified to
  37. # resolve the local subnets on the fly.
  38. list local_network '192.168.0.0/16'
  39. list local_network '172.16.0.0/12'
  40. list local_network '10.0.0.0/8'
  41. list local_network 'lan'