From: Thossapron Apinyapanha Date: Sun, 12 Nov 2006 18:18:44 +0000 Subject: [LARTC] Script for get bandwidth statistic from iptable Message-Id: <20061112181844.11788.qmail@web35501.mail.mud.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0480269523==" List-Id: To: lartc@vger.kernel.org --===============0480269523== Content-Type: multipart/alternative; boundary="0-1010374613-1163355524=:11116" --0-1010374613-1163355524=:11116 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable i search a lot forum how to get bandwidth statistic such number of packet, = total byte in each application protocol by using IPTABLES + netfilter-layer= 7 =0A=0Abut i don't know which script for getting it in log file and use da= ta after get it for plotting graph later =0A=0Amy IPTABLES command like thi= s =0A=0Aiptables -t mangle -N all =0Aiptables -t mangle -A POSTROUTING -j a= ll =0Aiptables -t mangle -A POSTROUTING -p udp --sport 4444 -j CLASSIFY --s= et-class 1:11 =0Aiptables -t mangle -A POSTROUTING -m layer7 --l7proto mms = -j CLASSIFY --set-class 1:12 =0Aiptables -t mangle -A POSTROUTING -m layer7= --l7proto telnet -j CLASSIFY --set-class 1:13 =0Aiptables -t mangle -A POS= TROUTING -m layer7 --l7proto ftp ftp-data -j CLASSIFY --set-class 1:14 =0Ai= ptables -t mangle -A POSTROUTING -m layer7 --l7proto http -j CLASSIFY --set= -class 1:15 =0A=0A=0Aplease advise me about perl script=0A=0A --0-1010374613-1163355524=:11116 Content-Type: text/html; charset=ascii Content-Transfer-Encoding: quoted-printable
i search a lot forum how to get bandwidth statistic such number o= f packet, total byte in each application protocol by using IPTABLES + netfi= lter-layer7

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

my IPTABLES co= mmand like this

iptables -t mangle -N all
iptables -t mangle -A= POSTROUTING -j all
iptables -t mangle -A POSTROUTING -p udp --sport 44= 44 -j CLASSIFY --set-class 1:11
iptables -t mangle -A POSTROUTING -m la= yer7 --l7proto mms -j CLASSIFY --set-class 1:12
iptables -t mangle -A P= OSTROUTING -m layer7 --l7proto telnet -j CLASSIFY --set-class 1:13
ipta= bles -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=0A

--0-1010374613-1163355524=:11116-- --===============0480269523== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0480269523==--