From mboxrd@z Thu Jan 1 00:00:00 1970 From: forum@users.pc9.org Subject: Re: Logging Date: Mon, 15 Mar 2004 10:36:08 -0600 Sender: netfilter-admin@lists.netfilter.org Message-ID: References: <1079365863.2163.8.camel@vejan> Return-path: In-Reply-To: <1079365863.2163.8.camel@vejan> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Mario Udina Cc: netfilter@lists.netfilter.org > I have done some googling however did not manage to find out if there is > a way to define a file where iptables writes its logs. In UNIX, the 'syslog' interface uses two parameters for any information logged: The logging facility The logging level I believe the facility is fixed to kernel, but the level can be changed. Corresponding to that is the configuration in syslog.conf Another useful thing is --log-prefix in the iptables command, which lets you output a descriptive log prefix. You can then script your own log placement, using grep or something. -- forum@users.pc9.org