how to find Squid traffic,....?

Posted on 2006-04-21
Last Modified: 2010-03-17
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..?
Question by:shanraj
    LVL 14

    Accepted Solution

    sure you have many squid analyzers

    and the squid graph is very complete
    LVL 5

    Assisted Solution

    its so easy friend just do the following with iptables, in root login (suppose your internal subnet is
     iptables -A FORWARD -d -j sample

     iptables -A OUTPUT -d -j sample


    iptables -A FORWARD

    iptables -A OUTPUT


    iptables -A sample -d
    iptables -A sample -d
    iptables -A sample -d
    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 - * *  

    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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now