[Gllug] Bandwidth monitoring
Xander D Harkness
xander at harkness.co.uk
Thu Feb 20 16:50:06 UTC 2003
Xander D Harkness wrote:
> Ashley Evans wrote:
>
>> I run a proxy (squid) for about 8 or so people I was wondering what
>> good tools there are for checking who's using how much bandwidth,
>> maybe applying restrictions depending on whether or not I'm using the
>> link. I'd also like to have the squid logs compressed at regular
>> intervals, is there an automatic tool or do I have to cook up a cron
>> job?
>>
>> Cheers
>>
>> Ashley
>>
>>
>>
> There are lots of log analysis tools. It is even possible to set up
> quotas.
>
> The easiest way is to use authentication and webalizer which is a
> standard install on most systems:
> hits files Kb visits username
> *1* *2487* 0.84% *2139* 0.78% *10785* 0.81% *29* 13.00% user1 *2*
> *227* 0.08% *226* 0.08% *7545* 0.57% *5* 2.24% user2 *3* *85* 0.03%
> *85* 0.03% *242* 0.02% *1* 0.45% user3 *4* *72* 0.02% *46* 0.02% *98*
> 0.01% *1* 0.45% user4
Whoops that was sent accidentally before I could clean it up:
hits files
Kb visits username
1 2487 0.84% 2139 0.78% 10785 0.81% 29 13.00%
user1
2 227 0.08% 226 0.08% 7545 0.57% 5 2.24%
user2
3 85 0.03% 85 0.03% 242 0.02% 1
0.45% user3
4 72 0.02% 46 0.02% 98 0.01% 1
0.45% user4
Squid config for auth is:
auth_param basic program /usr/lib/squid/pam_auth
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
acl xpassword proxy_auth REQUIRED
acl all src 0.0.0.0
acl filter url_regex "/etc/squid/banned"
# This allows me to block advert sites and tracking sites such as double
click.
http_access deny filter
http_access allow xpassword
http_access deny all
Kind regards
Xander
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list