Eduardo Rohr wrote:
> > > > i want to log all info from ipchains logging
> > > > to /var/log/ipchains
> > > >
> > > > now it logs to console and /var/log/messages
> > > >
> > > > can someone tell me to what ipchains logs ? (kern. ?)
> > >
> > > kern.info
> > >
> > > > or how to change this ?
> > >
> > > dump_packet() in /usr/src/linux/net/ipv4/ip_fw.c.
> >
> > hmms i looked in this file, but could not find something refering to
> > kern.info or something
> >
> > i'm not a programmer, so could someone help me out ?
> >
> > so if i want to change it to local6.info
> > where and how should i do this ?
>
> I have kernel 2.2.14 (shipped with RH 6.2) and in this file at line 421 you
> have what your looking for:
>
> printk(KERN_INFO "Packet log: %s ", chainlabel);
It might be worth noting that you can only the priority ("info"); the
messages will always be logged under the "kern" facility.
BTW, the KERN_* constants are in /usr/include/linux/kernel.h.
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]