Logging IPCHAINS separate ?
Hi all, is there any way to write the logging-output from ipchains to an other file as /var/log/messages ? Greetings, Michael J. Roth **************************************************************************** ************ Schmücker & Partner GmbH Telefon 069/57005-421 Lurgiallee 14 Telefax 069/57005-800 60439 Frankfurt Mobil 0171/3213343 HTTP://www.schmuecker.de MichaelRoth@schmuecker.de ***********************************************************************
Dear MichaelRoth@schmuecker.de, concerning your mail sent on Fri, 12 Nov 1999 let me reply the following:
Hi all, is there any way to write the logging-output from ipchains to an other file as /var/log/messages ?
Greetings, Michael J. Roth
**************************************************************************** ************ Schmücker & Partner GmbH Telefon 069/57005-421 Lurgiallee 14 Telefax 069/57005-800 60439 Frankfurt Mobil 0171/3213343 HTTP://www.schmuecker.de MichaelRoth@schmuecker.de *********************************************************************** -- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
Hello, for the ipchains-HOWTO see http://www.rustcorp.com/linux/ipchains/HOWTO.html In chapter 4 one can see that the option "-l" enables logging via klogd (the kernellogdaemon). klogd gives the information to syslogd (the systemlogdaemon). Therefore you have to edit /etc/syslogd.conf, where you can add kern.debug /PATH/LOGFILENAME Then you will find _all_ logs of klogd in that file. Instead of kern.debug it might be reasonable to write kern.info, otherwise you will find informations that you don't need (I don't yknow what you want to log). Anyway, you should read the man pages of syslogd, syslog.conf, klogd, ipchains,... Martin -- ---------------------------------------------------- Martin Peikert EN 636 Fachgebiet Theoretische Elektrotechnik TU Berlin Sekretariat EN 2 fon 314-23881 fax 314-22284 http://www-tet.ee.tu-berlin.de/peikert/index.html ----------------------------------------------------
On Fri, Nov 12, 1999 at 12:39 +0100, Martin P. Peikert wrote:
is there any way to write the logging-output from ipchains to an other file as /var/log/messages ? Therefore you have to edit /etc/syslogd.conf, where you can add kern.debug /PATH/LOGFILENAME Then you will find _all_ logs of klogd in that file. .com
Alternativly you can specify a pipe kern.debug |/var/adm/kern.debug A daemon (or similar) could read this pipe, parse the input, and write to files - or whatever. This should solve your problems I hope. oki, Steffen -- Dieses Schreiben wurde maschinell erstellt, es trägt daher weder Unterschrift noch Siegel.
participants (3)
-
Martin P. Peikert
-
MichaelRoth@schmuecker.de
-
Steffen Dettmer