* grovel netfilter_conntrack_xxx from applications how? @ 2005-11-25 4:33 Tyler Retzlaff 2005-11-25 6:45 ` Georgi Alexandrov 0 siblings, 1 reply; 3+ messages in thread From: Tyler Retzlaff @ 2005-11-25 4:33 UTC (permalink / raw) To: netfilter 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: grovel netfilter_conntrack_xxx from applications how? 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> 0 siblings, 1 reply; 3+ messages in thread From: Georgi Alexandrov @ 2005-11-25 6:45 UTC (permalink / raw) To: netfilter 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. P.S. Though i've never experienced the above behaviour. regards, Georgi Alexandrov ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <9157D95B-8939-4BA4-B254-76E073BC23E9@softelsystems.com.au>]
* Re: grovel netfilter_conntrack_xxx from applications how? [not found] ` <9157D95B-8939-4BA4-B254-76E073BC23E9@softelsystems.com.au> @ 2005-11-25 10:52 ` Georgi Alexandrov 0 siblings, 0 replies; 3+ messages in thread From: Georgi Alexandrov @ 2005-11-25 10:52 UTC (permalink / raw) To: netfilter 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-25 10:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox