Traffic on local machine is recorded twice.

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

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

    filter "ip and not ((src net or (dst net" (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, 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.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks