From: bert hubert <ahu@ds9a.nl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Monitoring traffic
Date: Sat, 22 Sep 2001 15:03:02 +0000 [thread overview]
Message-ID: <marc-lartc-100117101803103@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100116951632668@msgid-missing>
On Sat, Sep 22, 2001 at 04:41:57PM +0200, RoMaN SoFt / LLFB wrote:
>
> Hi.
>
> I'm going to setup policy routing and traffic shaping. Before that I
> need to do some kind of study about our traffic to determine the best
> way of distribute our bandwidth. For that reason I'd like some tool
> that could retrieve this information:
> - traffic based on app layer protocol (for instance, http, ftp, pop3;
> or basing on different destination ports: 80, 21, 110).
> - the measurements should be statistics, I mean, I could examine
> traffic from 9h to 14h and that program should give traffic per hour,
> etc.
> - differentiate inbound / outbound traffic
Tricky. For instantaneous measurements, I use iptraf. Then there is ipac,
which you can use for per ip/per port measurements, which can report on time
intervals.
I also use iptables & mrtg together like this:
iptables -N mrtg-from-the-internet > /dev/null 2> /dev/null
iptables -N mrtg-to-the-internet > /dev/null 2> /dev/null
iptables -A INPUT -i eth0 \! -s 213.244.168.192/26 -j mrtg-from-the-internet
iptables -A OUTPUT -o eth0 \! -d 213.244.168.192/26 -j mrtg-to-the-internet
and then:
Target[traffic]: `/var/www/mrtg.ds9a.nl/traffic`
and /var/www/mrtg.ds9a.nl/traffic:
#!/bin/sh
/sbin/iptables -L -n -v -x | grep mrtg- |grep "^ " | awk "{print \$2}"
uptime
uname -a
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
Trilab The Technology People
Netherlabs BV / Rent-a-Nerd.nl - Nerd Available -
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
next prev parent reply other threads:[~2001-09-22 15:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-22 14:41 [LARTC] Monitoring traffic RoMaN SoFt / LLFB
2001-09-22 15:03 ` bert hubert [this message]
2001-09-22 19:59 ` Arkadiusz Miskiewicz
2001-09-22 21:32 ` Re[2]: " Fabian Gervan
2003-08-26 20:55 ` Alex
2003-08-27 1:00 ` Alex
2003-08-27 15:32 ` Stef Coene
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-100117101803103@msgid-missing \
--to=ahu@ds9a.nl \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.