All of lore.kernel.org
 help / color / mirror / Atom feed
* How can I view detailed log of IPTABLES
@ 2003-06-18 12:27 Deshwal Chand
  2003-06-18 13:30 ` Alistair Tonner
  2003-06-18 13:41 ` Volker Augustin
  0 siblings, 2 replies; 4+ messages in thread
From: Deshwal Chand @ 2003-06-18 12:27 UTC (permalink / raw)
  To: Netfilter (E-mail)

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

Hi 

I have IPTABLES 1.2.5 at Redhat 2.4.7-10. I am not able to see the logs
generated by IPTABLES. May I haven't enalbed logging for iptables. How can I
enable logging?


Chand

[-- Attachment #2: Type: text/html, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: How can I view detailed log of IPTABLES
@ 2003-06-19  5:25 Deshwal Chand
  0 siblings, 0 replies; 4+ messages in thread
From: Deshwal Chand @ 2003-06-19  5:25 UTC (permalink / raw)
  To: 'Alistair@nerdnet.ca', Netfilter (E-mail)

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

I have set the log level in iptables to 5 (notice). But no log appears in
the message file.

 

 



-----Original Message-----
From: Alistair Tonner [mailto:Alistair@nerdnet.ca]
Sent: Wednesday, June 18, 2003 8:00 PM
To: Deshwal Chand; Netfilter (E-mail)
Subject: Re: How can I view detailed log of IPTABLES


On June 18, 2003 08:27 am, Deshwal Chand wrote:
> Hi
>
> I have IPTABLES 1.2.5 at Redhat 2.4.7-10. I am not able to see the logs
> generated by IPTABLES. May I haven't enalbed logging for iptables. How can
> I enable logging?
>
>
> Chand

	By default iptables logs nothing.  You must create specific rules to
log 
anything.	
	Generally you only want to see certain things logged.  Thus just as
you would
	craft rules to handle specific packets, one must craft rules to log,
just use
	the -j LOG target.

	The best logging rules should be the last rule in a chain, and trap
	 everything, just before the chain's policy (often drop) kicks in.

	e.g  this is the last line in my INPUT chain.  Logging, with limits.
$IPTABLES -A INPUT -m limit --limit 3/minute --limit-burst 3 -j LOG \
--log-level DEBUG --log-prefix "IPT INPUT packet died: "

	note that I don't filter *any* packets here ..the policy in INPUT is
drop.
	thus I now see all packets dropped by my INPUT chain.

	Alistair Tonner
	nerdnet.ca
	Senior Systems Analyst - RSS
	
     Any sufficiently advanced technology will have the appearance of magic.
	Lets get magical!

[-- Attachment #2: Type: text/html, Size: 3435 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-19  5:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-18 12:27 How can I view detailed log of IPTABLES Deshwal Chand
2003-06-18 13:30 ` Alistair Tonner
2003-06-18 13:41 ` Volker Augustin
  -- strict thread matches above, loose matches on Subject: below --
2003-06-19  5:25 Deshwal Chand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.