Feed on
Posts
Comments

Monitor your internal LAN

If you have a Debian based server like Ubuntu you might be interested in finding out how much bandwidth each user uses.

Ipband – A cool tool to monitor your LAN regarding traffic

Install : apt-get install ipband

How to use :

 ipband eth1 -f "net 192.168.0.0/24" -a 60 -r 60 -o /home/user/log.txt

eth1 = the network card to monitor

-f “net 192.168.0.0/24 “ = will monitor every host in your lan

-a = how often total traffic and bandwidth should be calculated ( in our case for a time period of 60 seconds )

-r = Reporting period – number of seconds bandwidth threshold may be exceeded before it should be reported.

-o = the file where you want to keep your log

Related Posts:

9 Responses to “Monitor your internal LAN”

  1. blink4blog says:

    Questions:

    1. Does it support wlan?

    2. When I execute the command I get an error of:

    Warning: Kernel filter failed: Invalid argument
    compile: non-network bits set in “192.168.1.2/24″Aborted

    Am I missing something?

  2. tech_provider says:

    1.Yes
    2.One or some of your command arguments are wrong. What are you typing in your shell?

  3. blink4blog says:

    sudo ipband wlan0 -f “net 192.168.1.0/24″ -a 60 -r 60 -o /home/user/ipbandlog.txt

    then it prompted for sudo then nothing happens before i hit CTRL+C and there is no log file output.

  4. tech_provider says:

    /home/user/ipbandlog.txt
    That’s the problem.
    Use your username instead of -user- ; the output path is not right

  5. blink4blog says:

    I meant /home/my_name not as what literate /home/user

  6. tech_provider says:

    Are you waiting 60 seconds ?
    If you do it’s probably because of the -r 60 parameter. Try lowering that value.

  7. blink4blog says:

    yeah i did. any concern on firewall or linux kernel?

  8. tech_provider says:

    The kernel or firewall shouldn’t be a problem.May be the wireless is not supported like you initially asked. Try the ubuntu irc channel / forum or on the official site.Let me know if you find out anything.

  9. blink4blog says:

    thanks

Leave a Reply