From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gavin Hamill Subject: Re: How to log what is drop Date: Thu, 8 Jul 2004 08:44:07 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <200407080844.08036.gdh@acentral.co.uk> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org On Thursday 08 July 2004 08:30, IZEM Farid wrote: > Hi all, > > Just a Simple question. > > How do i log what is being rejected or drop by my Firewall. > > I configure my syslog.conf like this: > kern.* /var/log/kernel > > And I had the following rule: > Iptables -A FORWARD -j LOG > > It seems that all connections is logged so it is very difficult to read the > log. Firstly, do you actually have DROP statements in your ruleset? If so, the LOG statement should appear JUST BEFORE the block of DROP statements. Since ACCEPT or DROP are one-way-streets for packets, you want to LOG just before they get DROPped, but not log any of the ACCEPTed packets. Cheers, Gavin.