From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@medozas.de>,
netfilter-devel@vger.kernel.org, linux-audit@redhat.com,
Eric Paris <eparis@parisplace.org>,
Al Viro <viro@ZenIV.linux.org.uk>
Subject: Re: [PATCHv3] netfilter: audit target to record accepted/dropped packets
Date: Sun, 16 Jan 2011 18:12:32 +0100 [thread overview]
Message-ID: <4D332700.1040501@trash.net> (raw)
In-Reply-To: <20110114222429.GB22508@canuck.infradead.org>
Am 14.01.2011 23:24, schrieb Thomas Graf:
> [Modifications based on Jan's comments:
> - use %hu and %hhu for shorts.
> - renamed xt_AUDIT_info to xt_audit_info
> ]
>
> This patch adds a new netfilter target which creates audit records
> for packets traversing a certain chain.
>
> It can be used to record packets which are rejected administraively
> as follows:
>
> -N AUDIT_DROP
> -A AUDIT_DROP -j AUDIT --type DROP
> -A AUDIT_DROP -j DROP
>
> a rule which would typically drop or reject a packet would then
> invoke the new chain to record packets before dropping them.
>
> -j AUDIT_DROP
>
> The module is protocol independant and works for iptables, ip6tables
> and ebtables.
>
> The following information is logged:
> - netfilter hook
> - packet length
> - incomming/outgoing interface
> - MAC src/dst/proto for ethernet packets
> - src/dst/protocol address for IPv4/IPv6
> - src/dst port for TCP/UDP/UDPLITE
> - icmp type/code
>
Applied, thanks Thomas.
next prev parent reply other threads:[~2011-01-16 17:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 15:20 [PATCH] netfilter: audit target to record accepted/dropped packets Thomas Graf
2011-01-14 15:26 ` Eric Paris
2011-01-14 15:31 ` Jan Engelhardt
2011-01-14 15:37 ` Thomas Graf
2011-01-14 15:46 ` Patrick McHardy
2011-01-14 16:19 ` Thomas Graf
2011-01-14 16:49 ` Jan Engelhardt
2011-01-14 16:59 ` [PATCHv2] " Thomas Graf
2011-01-14 17:29 ` Jan Engelhardt
2011-01-14 22:22 ` Thomas Graf
2011-01-14 23:10 ` Michał Mirosław
2011-01-14 23:19 ` Jan Engelhardt
2011-01-14 23:16 ` Jan Engelhardt
2011-01-14 22:24 ` [PATCHv3] " Thomas Graf
2011-01-14 23:48 ` [PATCHv4] " Thomas Graf
2011-01-15 16:07 ` Patrick McHardy
2011-01-16 17:12 ` Patrick McHardy [this message]
2011-01-14 18:51 ` [PATCHv2] " Mr Dash Four
2011-01-14 19:18 ` Jan Engelhardt
2011-01-14 19:24 ` Eric Paris
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=4D332700.1040501@trash.net \
--to=kaber@trash.net \
--cc=eparis@parisplace.org \
--cc=jengelh@medozas.de \
--cc=linux-audit@redhat.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).