LARTC
[Top] [All Lists]

[LARTC] Script for get bandwidth statistic from iptable

To: lartc lartc <lartc@mailman.ds9a.nl>
Subject: [LARTC] Script for get bandwidth statistic from iptable
From: Thossapron Apinyapanha <e1605projecter@yahoo.com>
Date: Sun, 12 Nov 2006 10:18:44 -0800 (PST)
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type; b=PMYSU53rFweTljiZMKT1LlQu8oczyJSSUQeZt/NxO3g4s3e6NSt6xuQXyg/zhTw1fqO9ZbttsZ5JqL5cbsx8Xvnn7Eov2zMS1usOOb5LV+dVeNf17JuXGnXLarrE8fNKgECONTGObzrkDD2ToQQo9A+VS0E/PwH40kcHj/yukeI= ;
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
Sender: lartc-bounces@mailman.ds9a.nl
i search a lot forum how to get bandwidth statistic such number of packet, total byte in each application protocol by using IPTABLES + netfilter-layer7

but i don't know which script for getting it in log file and use data after get it for plotting graph later

my IPTABLES command like this

iptables -t mangle -N all
iptables -t mangle -A POSTROUTING -j all
iptables -t mangle -A POSTROUTING -p udp --sport 4444 -j CLASSIFY --set-class 1:11
iptables -t mangle -A POSTROUTING -m layer7 --l7proto mms -j CLASSIFY --set-class 1:12
iptables -t mangle -A POSTROUTING -m layer7 --l7proto telnet -j CLASSIFY --set-class 1:13
iptables -t mangle -A POSTROUTING -m layer7 --l7proto ftp ftp-data -j CLASSIFY --set-class 1:14
iptables -t mangle -A POSTROUTING -m layer7 --l7proto http -j CLASSIFY --set-class 1:15


please advise me about perl script

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
<Prev in Thread] Current Thread [Next in Thread>