[MASOCH-L] Contabilizar subnet

Wederson Rodrigues wederson at vipvilhena.com.br
Wed Jun 26 16:21:21 BRT 2013


Alexandre,

Eu fiz uma marcação com o iptables e gero com rrdtool

mais ou menos assim:

iptables -t mangle -N subnet1
iptables -t mangle -I PREROUTING -s xxxxxxx/24 -j subnet1
iptables -t mangle -I POSTROUTING -d xxxxx/24 -j subnet1


E coleto os dados assim para gerar o rrd:

IN=`iptables -t mangle -L PREROUTING -nvx | grep embrate | awk {'print $2'}`
OUT=`iptables -t mangle -L POSTROUTING -nvx | grep embrate | awk {'print
$2'}`








Em 26 de junho de 2013 14:15, Alexandre J. Correa - Onda Internet <
alexandre at onda.net.br> escreveu:

> Pensei nele tambem.. vou testar aqui se consigo esse tipo de consulta por
> ele.. (provavel q sim)
>
> obrigado
> Em 26/06/2013 15:08, Bruno Cabral escreveu:
>
>  ntop?
>> !3runo Cabral
>> --
>> Cursos e Consultoria BGP
>>
>>  Existe alguma ferramenta facil pra poder contabilizar consumo total por
>>> subnet.. ?
>>>
>>> Gostaria de gerar alguns graficos por exemplo: subnet 200.200.200.0/24
>>> consome 200mbit em horario de pico.. 200.200.201.0/24 consome 50mb ..
>>>
>>> Pensei em usar o flow-tools mesmo.. so a parte de relatorio que eu não
>>> sei fazer.. mesmo via linha de comando pra saber isso..
>>>
>>
>> __
>> masoch-l list
>> https://eng.registro.br/**mailman/listinfo/masoch-l<https://eng.registro.br/mailman/listinfo/masoch-l>
>>
>>
>
> --
> Sds.
>
> Alexandre Jeronimo Correa
> Socio-Administrador
>
> Onda Internet
> www.onda.net.br
>
> IPV6 Ready !
>
> __
> masoch-l list
> https://eng.registro.br/**mailman/listinfo/masoch-l<https://eng.registro.br/mailman/listinfo/masoch-l>
>



-- 

[]'s

-----------------------------------------
.'. Wederson Rodrigues .'.  (CeBoLaRk)
VIP - Vilhena Internet Provider
Gerente de T.I.

http://www.vipvilhena.com.br
MSN: cebolark at hotmail.com
SKYPE: cebolark
EMAIL: wederson at vipvilhena.com.br
INOC VOIP: 28240*100
Celular: 0xx69 8437-0186
Fixo: 0xx69 3322-2244


-----------------------------------------


More information about the masoch-l mailing list