Old 12-15-2011, 12:41 PM   #1 (permalink)
Newbie
 
Join Date: Feb 2011
Posts: 5
maxit is on a distinguished road
Default Bandwidthd & speedtest

Using bandwidthd as I just need a simple program to monitor (not control) bandwidth use per IP on a wireless subnet. Plus a method to see if the individual wireless connection or the POP is overloaded when someone eventually gripes about slow Internet access:
Here's how I did it:

Install bandwidthd,
- Download SARGE-bandwxxxxxxxx.deb from Sourceforge
- dpkg -i SARGE-xxxxxxx.deb
- edit /etc/bandwidthd/bandwidthd.conf to eth1 of your router, and the proper subnet on it (ie 172.16.1.0/24)
- add an alias for your apache server. If you want to monitor both internal and from remote, add to both the *:80 and *:443 sections
cd /etc/apache2/sites-available and edit uvm adding before the </VirtualHost>

Alias usage "/var/lib/bandwidthd/htdocs"
<Directory "/var/lib/bandwidthd/htdocs">
Order Allow,Deny
Allow from All
</Directory>
View reports with LAN_IP/usage or
Code:
https://WAN_IP/usage
speedtest.net, the site dedicated to convincing morons their Internet is no good has a mini speedtest available (mini.zip).
Download, unzip it and copy it to /var/www/speed then cd there
mv index-php.html to index.html
Now you have to set another Alias for apache2, cd to sites-available again and do the same adding
Alias /speed "/var/www/speed/" (and Directory info as above)
Call it up the same way LAN_IP/speed from inside
Code:
https://WAN_IP/speed
from outside

If someone uses the speedtest from the LAN, they are measuring the speed of their Internet connection to the POP router, which is what you want to see, rather than a figure that could be a problem anywhere from the user's home 50 miles beyond the end of civilization and the router he picked in Kazakhstan. No kidding, had a Band Manager in Northern British Columbia insist on using treefrog with servers in Australia from his workstation daisy chained on the end of half a dozen hubs and routers tell me that their report proved his Internet pipe was no good.
maxit is offline  
Old 01-22-2012, 12:44 PM   #2 (permalink)
Master Untangler
 
Join Date: Jul 2008
Posts: 103
warhed is on a distinguished road
Default 64 bit

I tried this but got stumped due to my Untangle being a 64 bit version.

Since I am new to linux, I did Google searches for BandwidthD 64 bit and only found an rpm for CentOS. I tried that, switching the file name to the RPM but it won't install.

Is there a 64bit version of BandwidthD?

Also, thanks for the step by steps, always appreciated.
warhed is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 07:39 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2