Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there anyway to monitor the current bandwidth in use by a user (NCSA auth) on squid?
Occasionally we get a user downloading too many videos at once, which blocks bandwidth to other users on the network. As I have no idea which user it is until the end of the day (SARG reports), we just restart the squid server to disconnect their downloads - not ideal.
Got it.
Ok, so currently my eth0 is at 4038kbits/sec.
Seems reasonable.
So, I just plug this up when there's a problem, find the IP address.
Then I have to bring up the squid log and cross check the IP?
What is promiscuous mode?
Is there a way to log the actual total bandwidth per hour or 10mins perhaps by IP or does this have to be done through the logging? ...or do I turn logging on and then have to use a log reading tool for iptraf?
I lost the SSH link while IPTRAF was running.
Now when I try to go into detailed statistics it says: detailed interface stats alreday monitoring eth0.
How do I stop that so I can view it again?
I tried kill and the process id which I found using pidof iptraf but it won;t stop the program.
promiscuous mode, at least as it relates to network cards & is as much as I understand it, is a mode in which the card listens to all packets, not just those destined for the machine itself.
It is pretty much compulsory for a packet sniffing type of utility to use it, otherwise you'd be ignoring some of the traffic on the wire.
I would suggest running the application in 'screen' if you get disconnected then you can always reconnect to the screen.
screen (will go back to prompt)
ctrl a-d (will disconnect the screen returning you to original prompt)
screen -r (will resume an existing screen, may have to specify the pid)
I wrote a blog article about screen on our company blog a while back and I'm not going to c&p it here if you want more details on how screen works check out the blog.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.