Help logs with iptables
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?
Quoted 4 lines · Jorge Enrique
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.
Signature · 12 lines
Jose Maria Lopez Hernandez Director Tecnico de bgSEC [email protected] 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"