* Customizing LOG output
@ 2005-01-25 1:32 Josh Larocque
2005-01-25 2:03 ` Samuel Jean
0 siblings, 1 reply; 4+ messages in thread
From: Josh Larocque @ 2005-01-25 1:32 UTC (permalink / raw)
To: netfilter
Is there a way to change the data the the LOG module outputs? As it stands right now it's printing IN, OUT, MAC, SRC, DST, LEN, TOS, PREC, TTL, ID, PROTO, SPT, DPT WINDOW, RES and UGRP... all taking up about 2 and a half lines on the screen for each entry. I'd like to get it down to a one-liner if possible.
Thanks,
Josh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customizing LOG output
2005-01-25 1:32 Customizing LOG output Josh Larocque
@ 2005-01-25 2:03 ` Samuel Jean
0 siblings, 0 replies; 4+ messages in thread
From: Samuel Jean @ 2005-01-25 2:03 UTC (permalink / raw)
To: Josh Larocque; +Cc: netfilter
Josh Larocque wrote:
> Is there a way to change the data the the LOG module outputs? As it stands right now it's printing IN, OUT, MAC, SRC, DST, LEN, TOS, PREC, TTL, ID, PROTO, SPT, DPT WINDOW, RES and UGRP... all taking up about 2 and a half lines on the screen for each entry. I'd like to get it down to a one-liner if possible.
>
Yes, hack at net/ipv4/netfilter/ipt_LOG.c by editing those printk's.
Don't forget to recompile this module and also rmmod ipt_LOG.
> Thanks,
>
> Josh
>
HTH,
Samuel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customizing LOG output
@ 2005-01-26 1:53 Josh Larocque
2005-01-26 13:29 ` Jose Maria Lopez
0 siblings, 1 reply; 4+ messages in thread
From: Josh Larocque @ 2005-01-26 1:53 UTC (permalink / raw)
To: Samuel Jean; +Cc: netfilter
Thanks Samuel, I'll give it a shot!
----- Original Message -----
>
> Josh Larocque wrote:
> > Is there a way to change the data the the LOG module outputs? As
> > it stands right now it's printing IN, OUT, MAC, SRC, DST, LEN,
> > TOS, PREC, TTL, ID, PROTO, SPT, DPT WINDOW, RES and UGRP... all
> > taking up about 2 and a half lines on the screen for each entry.
> > I'd like to get it down to a one-liner if possible.
> >
>
> Yes, hack at net/ipv4/netfilter/ipt_LOG.c by editing those printk's.
>
> Don't forget to recompile this module and also rmmod ipt_LOG.
>
> > Thanks,
> >
> > Josh
> >
>
> HTH,
>
> Samuel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customizing LOG output
2005-01-26 1:53 Josh Larocque
@ 2005-01-26 13:29 ` Jose Maria Lopez
0 siblings, 0 replies; 4+ messages in thread
From: Jose Maria Lopez @ 2005-01-26 13:29 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
El mié, 26 de 01 de 2005 a las 02:53, Josh Larocque escribió:
> Thanks Samuel, I'll give it a shot!
You can also give a try to ULOG, it logs to databases,
plain files, syslog formats, etc. It could be a lot
easier to modify ULOG than the iptables o Netfilter code.
Regards.
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-01-26 13:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25 1:32 Customizing LOG output Josh Larocque
2005-01-25 2:03 ` Samuel Jean
-- strict thread matches above, loose matches on Subject: below --
2005-01-26 1:53 Josh Larocque
2005-01-26 13:29 ` Jose Maria Lopez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.