aquaballoon

bandwidthd

Oct 18th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.03 KB | None | 0 0
  1. apt-get install bandwidthd
  2.  
  3. bandwidthd -l
  4.  
  5. /etc/bandwidthd/bandwidthd.conf
  6.  
  7. ####################################################
  8. # Bandwidthd.conf
  9. #
  10. # Commented out options are here to provide
  11. # documentation and represent defaults
  12.  
  13. # Subnets to collect statistics on.  Traffic that
  14. # matches none of these subnets will be ignored.
  15. # Syntax is either IP Subnet Mask or CIDR
  16. #subnet 192.168.0.0/24
  17.  
  18. subnet 124.158.108.0/24
  19. subnet 192.168.8.0/24
  20. subnet 192.168.7.0/24
  21. subnet 192.168.6.0/24
  22. subnet 192.168.5.0/24
  23. subnet 192.168.4.0/24
  24. subnet 192.168.3.0/24
  25.  
  26.  
  27. # Device to listen on
  28. # Bandwidthd listens on the first device it detects
  29. # by default.  Run "bandwidthd -l" for a list of
  30. # devices.
  31. #dev "eth0"
  32.  
  33. dev "any"
  34.  
  35. ###################################################
  36. # Options that don't usually get changed
  37.  
  38. # An interval is 2.5 minutes, this is how many
  39. # intervals to skip before doing a graphing run
  40. #skip_intervals 0
  41.  
  42. # Graph cutoff is how many k must be transfered by an
  43. # ip before we bother to graph it
  44. #graph_cutoff 1024
  45.  
  46. #Put interface in promiscuous mode to score to traffic
  47. #that may not be routing through the host machine.
  48. #promiscuous true
  49.  
  50. promiscuous false
  51.  
  52. #Log data to cdf file htdocs/log.cdf
  53. #output_cdf false
  54.  
  55. output_cdf true
  56.  
  57. #Set the cdf log output directory
  58. #log_dir "/var/lib/bandwidthd"
  59.  
  60. #Read back the cdf file on startup
  61. #recover_cdf false
  62.  
  63. recover_cdf true
  64.  
  65. #Libpcap format filter string used to control what bandwidthd see's
  66. #Please always include "ip" in the string to avoid strange problems
  67. #filter "ip"
  68.  
  69. #Draw Graphs - This default to true to graph the traffic bandwidthd is recording
  70. #Usually set this to false if you only want cdf output or
  71. #you are using the database output option.  Bandwidthd will use very little
  72. #ram and cpu if this is set to false.
  73. #graph true
  74.  
  75. #Set META REFRESH for static pages in seconds(default 150, use 0 to disable).
  76. #meta_refresh 150
  77.  
  78. meta_refresh 150
  79.  
  80. #Set the static html output directory
  81. #htdocs_dir "/var/lib/bandwidthd/htdocs"
Advertisement
Add Comment
Please, Sign In to add comment