Re: correct "Debian" way to log iptables to seperate file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/19/08 00:16, JW wrote:
> Hello,
>
> Iptables is annoying me by:
>
> 1) printing logs to the console
>
> 2) filling my /var/log/messages up with the same logs, which then get picked
> up and uselessly emailed to me by logcheck and logwatch.
>
> Of course all the logging is controlled by syslog, not iptables.
>
> What I really want is for those logs (which are not worthy of
> their "kernel.warning" status) to go to their own file.
>
> Google searching has turned up dozens of possible options, all of which seem
> like rather untidy hacks.
>
> What's the "right" way to do it?
Use the system logger. You're probably using the default, sysklogd,
and it's control file /etc/syslog.conf.
So, study up on it, particularly "$ man 5 syslog.conf", and Google
from there.
- --
Ron Johnson, Jr.
Jefferson LA USA
"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkhaAoQACgkQS9HxQb37Xmd3qgCgn2vSvqQwL+o6kp10fc3oFxhT
Mo0AoLO/8rX4K5vP+nL98YL04re7NKVl
=1oS0
-----END PGP SIGNATURE-----
Reply to: