All of lore.kernel.org
 help / color / mirror / Atom feed
* Connecttrack Access
@ 2002-11-22 18:41 Jeremy Fowler
  2002-12-05 20:40 ` Harald Welte
  0 siblings, 1 reply; 4+ messages in thread
From: Jeremy Fowler @ 2002-11-22 18:41 UTC (permalink / raw)
  To: netfilter-devel

New to the list, so sorry if this has been asked before. I was wondering if
there is a library interface to access the connecttrack module's MASQUERADE
feature to get a list of what port/ipaddr assignments. Basically looking for a
way to let a user-space program track SNAT connections and port usage.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Connecttrack Access
  2002-11-22 18:41 Connecttrack Access Jeremy Fowler
@ 2002-12-05 20:40 ` Harald Welte
  2002-12-06 22:59   ` Jeremy Fowler
  0 siblings, 1 reply; 4+ messages in thread
From: Harald Welte @ 2002-12-05 20:40 UTC (permalink / raw)
  To: Jeremy Fowler; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

On Fri, Nov 22, 2002 at 12:41:03PM -0600, Jeremy Fowler wrote:
> New to the list, so sorry if this has been asked before. I was wondering if
> there is a library interface to access the connecttrack module's MASQUERADE
> feature to get a list of what port/ipaddr assignments. Basically looking for a
> way to let a user-space program track SNAT connections and port usage.

read and parse /proc/net/ip_conntrack.

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- 
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Connecttrack Access
  2002-12-05 20:40 ` Harald Welte
@ 2002-12-06 22:59   ` Jeremy Fowler
  2002-12-16 11:57     ` Oskar Andreasson
  0 siblings, 1 reply; 4+ messages in thread
From: Jeremy Fowler @ 2002-12-06 22:59 UTC (permalink / raw)
  To: Harald Welte; +Cc: netfilter-devel

Thanks, I found that out. Do you know of a reference somewhere that tells me
what each column represents for each protocol. Do you know of any libraries that
parses that file into a linked list of C structures?

> -----Original Message-----
> From: Harald Welte [mailto:laforge@gnumonks.org]
> Sent: Thursday, December 05, 2002 2:40 PM
> To: Jeremy Fowler
> Cc: netfilter-devel@lists.netfilter.org
> Subject: Re: Connecttrack Access
>
>
> On Fri, Nov 22, 2002 at 12:41:03PM -0600, Jeremy Fowler wrote:
> > New to the list, so sorry if this has been asked before. I was wondering if
> > there is a library interface to access the connecttrack module's MASQUERADE
> > feature to get a list of what port/ipaddr assignments. Basically
> looking for a
> > way to let a user-space program track SNAT connections and port usage.
>
> read and parse /proc/net/ip_conntrack.
>
> --
> Live long and prosper
> - Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
> ============================================================================
> GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M-
> V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Connecttrack Access
  2002-12-06 22:59   ` Jeremy Fowler
@ 2002-12-16 11:57     ` Oskar Andreasson
  0 siblings, 0 replies; 4+ messages in thread
From: Oskar Andreasson @ 2002-12-16 11:57 UTC (permalink / raw)
  To: Jeremy Fowler; +Cc: netfilter-devel

Hi Jeremy,

I haven't seen any reply to this so far so... There is one such reference 
put together that you will find at 
http://iptables-tutorial.frozentux.net/chunkyhtml/statemachine.html. It is 
unfortunately not perfect, but I have not received any huge complaints 
about the text so far.


On Fri, 6 Dec 2002, Jeremy Fowler wrote:

> Thanks, I found that out. Do you know of a reference somewhere that tells me
> what each column represents for each protocol. Do you know of any libraries that
> parses that file into a linked list of C structures?
> 
> > -----Original Message-----
> > From: Harald Welte [mailto:laforge@gnumonks.org]
> > Sent: Thursday, December 05, 2002 2:40 PM
> > To: Jeremy Fowler
> > Cc: netfilter-devel@lists.netfilter.org
> > Subject: Re: Connecttrack Access
> >
> >
> > On Fri, Nov 22, 2002 at 12:41:03PM -0600, Jeremy Fowler wrote:
> > > New to the list, so sorry if this has been asked before. I was wondering if
> > > there is a library interface to access the connecttrack module's MASQUERADE
> > > feature to get a list of what port/ipaddr assignments. Basically
> > looking for a
> > > way to let a user-space program track SNAT connections and port usage.
> >
> > read and parse /proc/net/ip_conntrack.
> >
> > --
> > Live long and prosper
> > - Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
> > ============================================================================
> > GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M-
> > V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)
> >
> 
> 
> 

-- 
----
Oskar Andreasson
http://www.frozentux.net
http://iptables-tutorial.frozentux.net
http://ipsysctl-tutorial.frozentux.net
mailto:blueflux@koffein.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-16 11:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-22 18:41 Connecttrack Access Jeremy Fowler
2002-12-05 20:40 ` Harald Welte
2002-12-06 22:59   ` Jeremy Fowler
2002-12-16 11:57     ` Oskar Andreasson

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.