From: Georgi Alexandrov <georgi.alexandrov@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: grovel netfilter_conntrack_xxx from applications how?
Date: Fri, 25 Nov 2005 12:52:53 +0200 [thread overview]
Message-ID: <4386ED05.5070002@gmail.com> (raw)
In-Reply-To: <9157D95B-8939-4BA4-B254-76E073BC23E9@softelsystems.com.au>
Tyler Retzlaff wrote:
>
> On 25/11/2005, at 5:45 PM, Georgi Alexandrov wrote:
>
>> Tyler Retzlaff wrote:
>>
>>> How does one query netfilter for information about conntrack
>>> connections
>>> when they are established, disestablished etc..?
>>>
>>> Basically for connections established via conntrack_xxx modules I want
>>> to extract the details and use them in an application on the
>>> router. Is there
>>> documentation to a C API for doing this?
>>>
>>> Thanks
>>>
>>>
>> check /proc/net/ip_conntrack
>> but remember that accessing it directly ... with cat for example is
>> known that may crash your machine.
>
>
> eww that doesn't sound very appealing.
>
> I was kind of hoping for something more like callback registration
> where if a
> new session was established my userspace application was notified
> allowing
> me to query the details.
>
> I've been reading as much as possible since the original post and
> have only
> found references to netfilter hooks which appears to be for
> implementing things
> like ip_conntrack. I suppose I could fork ip_conntrack and add a
> callback
> registration interface to it but I was hoping something already existed.
>
> Thanks
>
Perhaps you may try the ULOG (userspace logging) target.
more @ iptables-tutorial.frozentux.net
prev parent reply other threads:[~2005-11-25 10:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-25 4:33 grovel netfilter_conntrack_xxx from applications how? Tyler Retzlaff
2005-11-25 6:45 ` Georgi Alexandrov
[not found] ` <9157D95B-8939-4BA4-B254-76E073BC23E9@softelsystems.com.au>
2005-11-25 10:52 ` Georgi Alexandrov [this message]
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=4386ED05.5070002@gmail.com \
--to=georgi.alexandrov@gmail.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 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.