how to find Squid traffic,....?

Hi all,

RedHat linux 9.0 system is configured as gateway machine for my network. Is there any way to find out the data traffic inboud/outbound for a particular IP address..? I want to know how much our users are downloading every day..?

From every IP address how data has been transfered is my objective..

How to do detect this..?
shanrajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pablouruguayCommented:
sure you have many squid analyzers

http://www.squid-cache.org/Scripts/

and the squid graph is very complete
http://freshmeat.net/projects/squid-graph/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ranadastidarCommented:
its so easy friend just do the following with iptables, in root login (suppose your internal subnet is 192.168.1.0)
 iptables -A FORWARD -d 192.168.1.0/24 -j sample

 iptables -A OUTPUT -d 192.168.1.0/24 -j sample


NOW NEXT

iptables -A FORWARD

iptables -A OUTPUT

THEN ADD ALL THE LAN IPS FOLLOWING WAY

iptables -A sample -d 192.168.1.10
iptables -A sample -d 192.168.1.11
iptables -A sample -d 192.168.1.12
.....
.........
so on

if u r using dhcp server for ip allotment
then u can check the lease file for the ip assingment

then u can see with following comman
iptables -L -v -n

its showing like this

Chain INPUT (policy ACCEPT 699k packets, 364M bytes)

7365 6258k - * * 0.0.0.0/0            192.168.1.10

like this way

so try with that

and dont forget to save

iptables-save -c > backup-bandwidth.txt


and for restore

iptables-restore -c < backup-bandwidth.txt
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.