* IPTables logging
@ 2003-02-04 3:38 Patrick Topping
2003-02-04 4:07 ` Joel Newkirk
2003-02-04 8:24 ` Eric Leblond
0 siblings, 2 replies; 3+ messages in thread
From: Patrick Topping @ 2003-02-04 3:38 UTC (permalink / raw)
To: netfilter
Is it possible to have iptables log to some other file than the messages
file on a linux server?? I would like to be able to have a log file of
just iptables info and not all the other system info. Thanks in advance.
-Patrick
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IPTables logging
2003-02-04 3:38 IPTables logging Patrick Topping
@ 2003-02-04 4:07 ` Joel Newkirk
2003-02-04 8:24 ` Eric Leblond
1 sibling, 0 replies; 3+ messages in thread
From: Joel Newkirk @ 2003-02-04 4:07 UTC (permalink / raw)
To: Patrick Topping, netfilter
On Monday 03 February 2003 10:38 pm, Patrick Topping wrote:
> Is it possible to have iptables log to some other file than the
> messages file on a linux server?? I would like to be able to have a
> log file of just iptables info and not all the other system info.
> Thanks in advance.
>
> -Patrick
How you do this will depend on your Linux distribution, but the following
is the general method that works in most cases.
Edit your /etc/syslog.conf file and add the following line:
kern.=debug /var/log/firewall
This will tell it to send Kernel logging messages (Netfilter is part of
the kernel, after all) of level "debug" to the listed file. In normal
usage, most people have very little kernel debug logging traffic. You
WILL have other messages occasionally, but unless you are actually
debugging a kernel build they will be minimal.
You will need to restart the syslogd daemon after this change. On many
systems this can be done (as root) with:
service syslog restart
Or by simply restarting the machine.
The final ingredient is to append "--log-level 7" to all your iptables
log rules, telling it to log as debug-level messages, which you've
already told syslog to write to their own file.
j
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IPTables logging
2003-02-04 3:38 IPTables logging Patrick Topping
2003-02-04 4:07 ` Joel Newkirk
@ 2003-02-04 8:24 ` Eric Leblond
1 sibling, 0 replies; 3+ messages in thread
From: Eric Leblond @ 2003-02-04 8:24 UTC (permalink / raw)
To: netfilter
Le mar 04/02/2003 à 04:38, Patrick Topping a écrit :
> Is it possible to have iptables log to some other file than the messages
> file on a linux server??
Use Ulog, you've got the control of were you want to log (in a file) and
you can log in a database (psql or mysql).
Furthermore you can specify how much packets you ong at once, that
dramatically decrease filesystem I/O.
--
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-04 8:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-04 3:38 IPTables logging Patrick Topping
2003-02-04 4:07 ` Joel Newkirk
2003-02-04 8:24 ` Eric Leblond
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox