I've just installed Bandwidthd on my asterisk phone server (CentOS). I've got bandwidthd set up to record an interface with an external ip (WAN) address of "188.8.131.52". When it runs for a while, it shows recorded data between the server and the VOIP peers as it should but the top line under the totals is the WAN address. I'm thinking it's recording everything twice because the totals for send and receive are identical. It's recording each packet's source and destination and since either the source or destination of every packet is the server, everything gets recorded to the WAN IP in addition to whatever other IP is involved. Is there a way I can set it to not count the WAN IP as another line item? I've tried:
filter "host 184.108.40.206" (didn't make a difference)
filter "ip and not ((src net 220.127.116.11) and (dst net 18.104.22.168))" (didn't make a noticeable difference)
filter "ip and not ((src net 22.214.171.124) or (dst net 126.96.36.199))" (recorded almost nothing, of course)
None of these did quite what I'm looking for.
Shouldn't bandwidthd have the ability to not count the host address since I'm not looking for traffic that isn't directed to or sourced from it?
Can you include a copy of your bandwidthd.conf file? If you want to avoid watching 188.8.131.52, you should be able to adjust the subnet line of your conf file to exclude it. Note that that will make it not record any entry for that IP. It should still give totals for the others properly. Also check your /var/log/syslog for errors and make sure it isn't launching two copies of bandwidthd.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.