Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Michael Weinert <weinert@sys2.de>
To: netfilter@lists.netfilter.org
Subject: Re: Log everything from iptables
Date: Thu, 16 Jun 2005 15:36:50 +0200	[thread overview]
Message-ID: <200506161536.54612.weinert@sys2.de> (raw)
In-Reply-To: <00c901c571ce$95902260$ec0211ac@PIVT>

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

Am Mittwoch, 15. Juni 2005 19:20 schrieb Sebastião Antônio Campos:

Hi,

> 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

-- 

          SysQuadrat    Systeme mit Sicherheit
    Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  weinert@sys2.de
           KeyServer hkp://pgp.mit.edu

[-- Attachment #2: Type: application/pgp-signature, Size: 676 bytes --]

  reply	other threads:[~2005-06-16 13:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 17:20 Log everything from iptables Sebastião Antônio Campos (Infojoi)
2005-06-16 13:36 ` Michael Weinert [this message]
2005-06-17 11:47   ` Jörg Harmuth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200506161536.54612.weinert@sys2.de \
    --to=weinert@sys2.de \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox