Traffic on local machine is recorded twice.

Help
AkkerKid
2011-12-20
2013-04-24
  • AkkerKid
    AkkerKid
    2011-12-20

    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 "123.123.123.123". 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 123.123.123.123"  (didn't make a difference)

    filter "ip and not ((src net 123.123.123.123) and (dst net 123.123.123.123))" (didn't make a noticeable difference)

    filter "ip and not ((src net 123.123.123.123) or (dst net 123.123.123.123))" (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?

     
  • Alestan
    Alestan
    2011-12-29

    Can you include a copy of your bandwidthd.conf file?  If you want to avoid watching 123.123.123.123, 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.