From: Ed W <lists@wildgooses.com>
To: Manikandan R <mani.agape@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Reg:Conntrack-tool for packet dropping?
Date: Tue, 04 Oct 2011 19:34:18 +0100 [thread overview]
Message-ID: <4E8B51AA.7030107@wildgooses.com> (raw)
In-Reply-To: <CAAG0ft4=CaBsdVxKApmvaBhP06xr+1522=Xcwo9O_59zSWunBA@mail.gmail.com>
On 04/10/2011 15:09, Manikandan R wrote:
> Hi,
> I am developing application monitoring tool. When I gothru
> http://netfilter.org/, I come to know about the conntrack-tool which
> can be used for monitoring new connection.
> I used "conntrackd"(conntrack deamon) for monitoring the packets.
> Using nfct_callback_register2() am able to handle new packets also,
> but I need to drop this packet if its related to particular
> pid/process. Is there is any way/api to drop packets?
>
Conntrack doesn't quite track all packets - see my previous questions
about this...
I think also if you need to examine all packets and decide their fate
ahead of allowing them through then you need to look at userspace queue
stuff?
Note you can setup some extremely clever filtering using iptables. That
has the ability to filter based on local user id, possibly process id
and also your app can set firewall marks on each packet that can be
easily filtered on later?
Good luck
Ed E
next prev parent reply other threads:[~2011-10-04 18:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAG0ft6yyx+PzcvxpfsnCTok7U+cdx3mnsU4gyJMk=zqCOn45A@mail.gmail.com>
2011-10-04 14:09 ` Reg:Conntrack-tool for packet dropping? Manikandan R
2011-10-04 18:34 ` Ed W [this message]
2011-10-06 8:07 ` Manikandan R
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=4E8B51AA.7030107@wildgooses.com \
--to=lists@wildgooses.com \
--cc=mani.agape@gmail.com \
--cc=netfilter-devel@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 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.