Re: Help logs with iptables

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

 



El miÃ, 13-04-2005 a las 16:16 -0400, Jorge Enrique escribiÃ:
> hi everyone, how can i get reports with iptables
> 
> I have my script for my firewall but i need get reports for all traffic
> my network. How can I do it?

What I do is creating chains for the rules I want to report.
So I do:

iptables -N TCPCHAIN
iptables -A TCPCHAIN -j RETURN
iptables -A FORWARD -p tcp -j TCPCHAIN

I think you can see the trick. Then doing a iptables -L TCPCHAIN -xvn
you have the rules.

If you want a system to make reports you can have a look at our
bastion-firewall-stats addon. It's GPL, and you can have the sources
at our website. It creates rrdtool graphics in a web page with the data
gathered from the chains using a libipc based daemon.

Regards.
-- 

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@xxxxxxxxx
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÃA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux