Posted: Wed Aug 19, 2009 3:05 pm Post subject: Bandwidth monitoring of invidividual computers?
Hey guys,
Last year I lived in a house off campus of my school with 6 other people, and we were constantly having problems with exceeding out ISPs bandwidth limits.
So I installed dd-wrt to the router (without them even knowing what happened :p) and was able to monitor the collective bandwidth from the whole house.
Eventually we realized it was one person using the majority, but we never figured out who. Does anyone know if dd-wrt offers any sort of bandwidth monitoring by individual computers rather than the network as a whole?
It can be done with iptables in your firewall script. You just need to create rules for each computer and then check the byte counters on each rule. The counters will not persist through reboots.
iptables -t mangle -vnL _________________ Stop using old builds. Read the forum announcements.
Looking for bricks and spare routers for testing/tutorials.
It can be done with iptables in your firewall script. You just need to create rules for each computer and then check the byte counters on each rule. The counters will not persist through reboots.
Oh okay thanks, I understand what I'm looking at now.
Anyway, how would I edit this script? I'm assuming I would have to log in by means of SSH. Where is the location of the script if I ssh into the router?
In the gui admin->commands->save firewall _________________ Stop using old builds. Read the forum announcements.
Looking for bricks and spare routers for testing/tutorials.
I realized recently that I'm still having some problems. For some reason, the bandwidth counter appears to randomly reset itself, even though the router itself hasn't been reset.
They weren't intended to be persistent but the counters should last as long as your WAN stays up. If one user is really using the majority of the bandwidth then it should be very noticeable if you check the counters at least once a day. _________________ Stop using old builds. Read the forum announcements.
Looking for bricks and spare routers for testing/tutorials.
Posted: Mon Nov 09, 2009 5:36 am Post subject: One other thing to keep in mind
You will also need to hard-code all of the client MAC addresses in the DHCP server so that all computers continue to get the same IP address on the private network. You probably are seeing the counters stop and start because machines are being rebooted or turned off and on and getting different IP addresses.
Joined: 10 Jun 2009 Posts: 43 Location: Belgium (Land of BEER)
Posted: Tue Nov 10, 2009 1:28 pm Post subject:
WallWatcher would be interesting to do this job but i dont now if DD-WRT send LOG data at port 514 (SysLog) or 162 (SNMPTrap).
Mabe you can enable this somewhere in the config screens or via a script?