Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-security
Navigation:
Lists: gentoo-security: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-security@g.o
From: Tobias Sager <moixa@...>
Subject: Re: How to make iptables log to a separate log file?
Date: Sun, 27 Nov 2005 16:24:57 +0100
on 2005-11-27 16:09 Abhay Kedia wrote the following:
> Can some one please give me any links where I can read about how to easily 
> configure syslog-ng.conf and achieve what I desire. If you could give exact 
> entries then I would be more than greatful.

I do iptables with --log-prefix "{fw}"
and in my syslog-ng.conf
<snip>
source s_kern { pipe("/proc/kmsg"); };

destination d_kernel    { file("/var/log/kernel.log"); };
destination d_firewall  { file("/var/log/firewall.log"); };

filter f_firewall       { match('\{fw\}'); };
filter f_notfirewall    { not match('\{fw\}'); };

# log kernel messages
log 	{ source(s_kern); filter(f_kern); filter(f_notfirewall);
		destination(d_kernel); };
# firewall messages
log 	{ source(s_kern); filter(f_firewall);
		destination(d_firewall); };
</snip>

Cheers
Tobias

-- 
GPG-Key 0xEF37FF28 - 1024/4096 DSA/ELG-E - 16.11.2001
Fingerprint: 3C4B 155F 2621 CEAF D3A6 0CCB 937C 9597 EF37 FF28

Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: How to make iptables log to a separate log file?
-- Tobias Klausmann
References:
How to make iptables log to a separate log file?
-- Abhay Kedia
Navigation:
Lists: gentoo-security: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
How to make iptables log to a separate log file?
Next by thread:
Re: How to make iptables log to a separate log file?
Previous by date:
How to make iptables log to a separate log file?
Next by date:
Re: How to make iptables log to a separate log file?


Updated Jun 17, 2009

Summary: Archive of the gentoo-security mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.