[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Count traffic



> what exactly does this patch and how is it to be used? not much
> documentation on that site...

It creates an PROMISC chain that catches all pakets on the wire,
this is then connected to an hub just before the border router
ans sniffes the paktes, it goes like

 iptables -t meter -P PROMISCUOUS ACCEPT
 iptables -t meter -N incoming
 iptables -t meter -N outgoing
iptables -t meter -A incoming -d 62.208.70.1 -j ACCEPT
 iptables -t meter -A outgoing -s 62.208.70.1 -j ACCEPT

This data is read by a cronjob that runs a perlskript with a statement like

my(@OUTLINES) = `/usr/local/sbin/iptables -t meter -nL outgoing -vx -Z`;



Reply to: