Article View: alt.os.linux.suse
Article #213Re: traffic per ip address/day or month
From: Eric P. McCoy
Date: Fri, 26 Oct 2001 01:49
Date: Fri, 26 Oct 2001 01:49
38 lines
3092 bytes
3092 bytes
Followup text moved to its proper location. And followups directed to col.networking (alt.* groups are evil, I don't get ch.*). "Dysan" <dysan@scorpion-systems.co.uk> writes: > > i'm a newbie and i'm using suse 7.2. this is our gateway and our > > firewall/router. i'm subnetting and i want to collect the traffic going IN > > and OUT to a computer behind this firewall... i need the traffic going > > from/to a specific ip address per day or month - getting the whole > interface > > traffic isn't a solution for me... we need to bill someone for traffic... > > can this be done with iptables and how? a "self working" solution will be > > needed - where a *normal* user can read out the traffic every month, > without > > contacting the admin :-) > 1) tcpdump > Run with the right parameters will only collect the traffic you desire. You > can dump to a txt file and use something like Ksniffer to get graphical > results. He talks about "bill[ing] someone for traffic," which makes me think he cares about the quantity, not the quality, of bits going over the wire. In which case a program like mrtg might be more useful: it produces PNG graphs with input and output bandwidth utilization using SNMP. The UCD SNMP daemon, which runs on Linux, will collect the appopriate statistics, or if you have a switch or router that does it, you can monitor that. You can make graphs of many sources. mrtg works by default on a 5-minute average and produces graphs by day, week, month, and year; I believe all of that is configurable. The program is written in Perl, so you can naturally dig through the code with relative ease to get it to work exactly as you need. -- Eric McCoy <ctr2sprt@yahoo.com> "I woke up this morning and realized what the game needed: pirates, pimps, and gay furries." - Rich "Lowtax" Kyanka
Technical Details
Message-ID:
<8766932mvx.fsf@providence.local.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ct.home.com.POSTED!not-for-mailReferences:
<9r9v8g$i1e$05$1@news.t-online.com> <mc2C7.1597$h4.110115@stones>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1041dd,610e28305222e47 X-Google-Attributes: gid1041dd,public X-Google-Thread: f4b73,610e28305222e47 X-Google-Attributes: gidf4b73,public X-Google-Thread: 10669a,610e28305222e47 X-Google-Attributes: gid10669a,public X-Google-ArrivalTime: 2001-10-25 18:49:15 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ct.home.com.POSTED!not-for-mail Followup-To: comp.os.linux.networking Sender: emccoy@providence.local.net Newsgroups: alt.os.linux.suse,ch.comp.os.linux,comp.os.linux.networking Subject: Re: traffic per ip address/day or month References: <9r9v8g$i1e$05$1@news.t-online.com> <mc2C7.1597$h4.110115@stones> From: ctr2sprt@yahoo.com (Eric P. McCoy) Message-ID: <8766932mvx.fsf@providence.local.net> Lines: 38 X-Newsreader: Gnus v5.7/Emacs 20.7 Date: Fri, 26 Oct 2001 01:49:15 GMT NNTP-Posting-Host: 24.18.138.161 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.ct.home.com 1004060955 24.18.138.161 (Thu, 25 Oct 2001 18:49:15 PDT) NNTP-Posting-Date: Thu, 25 Oct 2001 18:49:15 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster