Skip to contentSkip to conversation

Log everything from iptables

DISCUSSION Sebastião Antônio Campos (Infojoi) 3 participants 3 messages Jun 15, 2005 – Jun 17, 2005

lore
Share & tools
lore
#1 lore raw

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.edu