Mailinglist Archive: opensuse-security (670 mails)

< Previous Next >
Re: [suse-security] IPTables - Logging
  • From: "Maf . King" <maf@xxxxxxxxxxxxx>
  • Date: Wed, 28 Nov 2001 12:17:27 +0000
  • Message-id: <20011128121727.A833@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On 2001.11.28 12:03 BLeonhardt@xxxxxxxxxxx wrote:
> Hi again,
>
> I still don't know how to log traffic on a specific interface ( eg eth0 )
> ...
>
> Mit freundlichen Grüßen
> Bruno Leonhardt
>

Hi Bruno,

Try something like :

#> iptables -I INPUT 1 -i eth0 -j LOG --log-prefix "Logged on eth0: "

Will log anything which arrives in the input chain on interface eth0 - but
the logs might get big!

To send these log messages to a specific file, IIRC, involves
/etc/syslog.conf

HTH
Maf.

--


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Maf. King
Standby Exhibition Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"It is easier to do a job right than to explain why you didn't."

- Martin Van Buren

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

< Previous Next >
This Thread
References