From: Thanasis <thanasis@asyr.hopto.org>
To: netfilter@vger.kernel.org
Subject: prevent iptables LOG target from flooding dmesg
Date: Sat, 05 Jun 2010 23:42:21 +0300 [thread overview]
Message-ID: <4C0AB6AD.104@asyr.hopto.org> (raw)
The subject says it all.
I have set up logging like so :
--------------------------------------------------------------------------------------------------------------------
iptables -A INPUT -m state --state INVALID -j LOG --log-prefix "DROP
INVALID " --log-ip-options --log-tcp-options
iptables -A INPUT -i $INTIF ! -s $LAN -j LOG --log-prefix "SPOOFED PKT "
iptables -A INPUT ! -i lo -j LOG --log-prefix "DROP " --log-ip-options
--log-tcp-options
iptables -A OUTPUT -m state --state INVALID -j LOG --log-prefix "DROP
INVALID " --log-ip-options --log-tcp-options
iptables -A OUTPUT ! -o lo -j LOG --log-prefix "DROP " --log-ip-options
--log-tcp-options
iptables -A FORWARD -m state --state INVALID -j LOG --log-prefix "DROP
INVALID " --log-ip-options --log-tcp-options
iptables -A FORWARD -i $INTIF ! -s $LAN -j LOG --log-prefix "SPOOFED PKT "
iptables -A FORWARD ! -i lo -j LOG --log-prefix "DROP " --log-ip-options
--log-tcp-options
--------------------------------------------------------------------------------------------------------------------
and dmesg is flooded by DROP log messages etc.
I have NETFILTER_NETLINK_LOG [=m]
in the kenel config, but I don't know how to use it,
(and what the module name is).
Any pointers/help will be much appreciated.
next reply other threads:[~2010-06-05 20:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-05 20:42 Thanasis [this message]
[not found] ` <AANLkTilXnjHFMQI50wTupvFi2hIgf0tMhlu-lzPekPr7@mail.gmail.com>
2010-06-05 22:03 ` prevent iptables LOG target from flooding dmesg Thanasis
2010-06-06 3:03 ` Robby Workman
2010-06-06 5:26 ` Thanasis
2010-06-06 11:31 ` Jan Engelhardt
2010-06-06 13:42 ` Thanasis
2010-06-06 16:55 ` Thanasis
2010-06-06 7:09 ` lists
2010-06-06 10:52 ` Thanasis
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=4C0AB6AD.104@asyr.hopto.org \
--to=thanasis@asyr.hopto.org \
--cc=netfilter@vger.kernel.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