From: "robee" <mlody@elpec.com>
To: netfilter@lists.netfilter.org
Subject: Re: packets loging
Date: Fri, 21 Apr 2006 08:34:09 +0200 [thread overview]
Message-ID: <000d01c6650d$99afe6e0$0e01050a@CyberAdmin> (raw)
In-Reply-To: 4447F34C.6030500@yahoo.com.mx
----- Original Message -----
From: "Mario" <mariounixuser@yahoo.com.mx>
To: "robee" <mlody@elpec.com>
Cc: <netfilter@lists.netfilter.org>
Sent: Thursday, April 20, 2006 10:47 PM
Subject: Re: packets loging
> robee wrote:
>> when i use -j LOG target, netfilter writes so many information to syslog.
>> what can i use to write only IN and OUT interface, SRC and DST host?
>> robee
> $myLoglevel=info ...
> iptables -A _____ -i $intif -s $Src -o $outif -d $Dest ________ -j
> LOG --log-prefix "xxxxxxx" --log-level $myLoglevel
> and a little change in syslog.conf... like: kern.=info
> /var/log/kern.info.log ....
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate
> ya - http://correo.yahoo.com.mx/
my rules looks like this:
iptables -I FORWARD -p tcp -i ! eth0 --dport 80 -m state --state NEW -j
LOG --log-prefix HTTP_ --log-level info
and i get something like this in /var/log/kernel
Apr 21 04:09:20 master kernel: HTTP_IN=eth2 OUT=eth0 SRC=10.11.9.2
DST=213.54.82.29 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=57962 DF PROTO=TCP
SPT=3636 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
but i want only this:
Apr 21 04:09:20 master kernel: HTTP_IN=eth2 OUT=eth0 SRC=10.11.9.2
DST=213.54.82.29
any sugestion?
robee
next prev parent reply other threads:[~2006-04-21 6:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-20 6:38 packets loging robee
2006-04-20 20:47 ` Mario
2006-04-21 6:34 ` robee [this message]
2006-04-21 7:22 ` Rob Sterenborg
2006-04-21 7:36 ` robee
2006-04-21 7:57 ` Rob Sterenborg
2006-04-21 8:52 ` robee
2006-04-21 11:15 ` Rob Sterenborg
2006-04-22 13:47 ` Jakub Wartak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000d01c6650d$99afe6e0$0e01050a@CyberAdmin' \
--to=mlody@elpec.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox