# Sample configuration file for Debian's ipband package.
# Simple version.

# The "fork" directive tells ipband to avoid forking into the background.
# Since our init script does this, we say "no".
fork no

# The "interface" directive tells ipband which adapter to monitor.
interface eth0

# Make sure the device is put into promiscuous mode.
promisc yes 

# The "bandwidth" directive is the default amount of bandwidth a subnet
# must exceed before being reported.  The unit is kilobytes per second.
# It can be modified on a per-subnet basis, see below.
bandwidth 600

# The "average" directive specifies how often we should average the used
# bandwidth.  The value is in seconds.
average 60 

# The "report" directive determines how long time a subnet must exceed the
# bandwidth limit before being reported.  The value is in seconds.
# Default: five minutes.
report 300

# The "top" setting is used in the report.  At most this number of connec-
# tions are included in the report, ordered according to bandwidth usage in
# falling relative order.
top 15

# Email-address we report to.
mailto root@localhost

# Do not collect reports in files by default, instead preferring mail
# message reporting.  Be sure to change these settings to sensible loca-
# tions in the contrary case.  Beware that the default file 'ipband.txt'
# is probably dropped below '/' in the absence of this blocker.
outfile  /dev/null

# To be active, HTML output needs an explicitly set location.
## htmlfile /var/www/html/ipband/ipband.html

# Number of significant bits in the hostmask.  The default is "24", which
# means for a subnet like "192.168.0.0", that all hosts from 192.168.0.0
# to 192.168.0.255 will be monitored.
maskbits 24

# Subnet declarations: Here we describe what networks and hosts we wish to
# monitor.  In this example, we have two networks.  One is 10.0.0.1, which
# is part of a low-bandwidth WAN, and then 192.168.0.0, which is a local
# 10 Mbps LAN.  The default 600 kB/s limit for the LAN is chosen since it
# is a fast network.  A bandwidth of 60 kB/s is set for the WAN, since it
# is imagined as slow, and we care more about who is using what bandwidth.
subnet 192.168.0.0 bandwidth 600
subnet 10.0.0.1 bandwidth 60
