Log everything from iptables
Hi people!
How can I do to log everything is passing thru my firewall on eth0 and eth1 and lo?? Using iptables??
Thanks
Tião
Sebastião Antônio Campos
Infojoi Computadores Ltda
89.224-000 Joinville -SC - R. Iririú, 3587
Cml. (47) 437-0796 - Cel. (47) 9927-5349
[email protected]
http://www.lupusnet.com.br
Am Mittwoch, 15. Juni 2005 19:20 schrieb Sebastião Antônio Campos:
Hi,
Quoted 2 lines
How can I do to log everything is passing thru my firewall on eth0 and eth1 and lo?? Using iptables??
just put:
iptables -I INPUT 1 -j LOG
iptables -I OUTPUT 1 -j LOG
iptables -I FORWARD 1 -j LOG
in a script and run it. It pushes a Log-entry as the first rule in the table.
Michael
Signature · 5 lines
SysQuadrat Systeme mit Sicherheit
Michael Weinert Stuttgart Filderstadt-Plattenhardt
Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
http://www.linux-firewall.de [email protected]
KeyServer hkp://pgp.mit.eduMichael Weinert schrieb:
[SNIP]> just put:
Quoted 6 lines
iptables -I INPUT 1 -j LOG
iptables -I OUTPUT 1 -j LOG
iptables -I FORWARD 1 -j LOGin a script and run it. It pushes a Log-entry as the first rule in the table.
If you have to deal with much traffic, you could be interested in reading this thread:
https://lists.netfilter.org/pipermail/netfilter/2005-May/060220.html
Have a nice time
Joerg