On Wed, Mar 27, 2002 at 11:26:34AM -0500, Val Schmidt wrote: > This is probably simple and is probably more of a syslog question than > iptables, but any help would be appreciated. > > I'd like to write iptables logs to a separate file than normal kernel > messages. > > Since other kernal messages are already logged at the info level and > above to /var/log/messages, the only solution I can see is to log > firewall logs at the debug level to a separate file. But that'll create > a lot of unwanted reproduced kernel messages in the firewall logs. > > How does the rest of the world do this?
I dont' know either how to log iptables messages on separate file. I guess it's not posible unless there is another level in syslogd specially for iptables. But maybe I'm wrong here. Anyway, you can start any log message with a delimiter: "[FIREWALL]" and then grep the standard syslogd file for this string with a different output, say iptables.log (use the --log-prefix) That's the simpliest way I know Hope to be of any help! > > Val Schmidt > Lamont Doherty Earth Observatory > > > > > -- Dan Terhesiu Network Administrator ASTRAL TELECOM
