All of lore.kernel.org
 help / color / mirror / Atom feed
* Netfilter_queue test program question
@ 2007-08-29  8:13 Andy Cristina
  2007-08-29  9:42 ` Gáspár Lajos
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Cristina @ 2007-08-29  8:13 UTC (permalink / raw)
  To: netfilter

I've been attempting to play with netfilter_queue to see how effective
a certain similarity hashing technique would work for identifying
parts of documents being sent out over the network, but I haven't had
much progress even getting the test program to work.

I can compile and link nfq_test.c fine, using both the old versions of
libnfnetfiler and libnetfilter_queue available from ubuntu's apt, and
by using the newest released versions compiled from source.

However, in any case when I run the compiled nfq_test, the program
seems to do nothing after setting the packet copy mode.  So it seems
to me as if it is perpetually waiting for a packet to be sent over the
netlink, but one never arrives, no matter how much network traffic I
have.

Am I missing some vital piece of setup?  When I run nfq_test, there
are two netfilter modules loaded.  Should there be more?  Do they need
to be configured somehow?  Is this the expected behavior?

I have tested this both on my ubuntu install and on a friend's debian,
both machines exhibit the same behavior.  Any help is certainly
appreciated.


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

* Re: Netfilter_queue test program question
  2007-08-29  8:13 Netfilter_queue test program question Andy Cristina
@ 2007-08-29  9:42 ` Gáspár Lajos
  2007-08-29 13:21   ` Andy Cristina
  0 siblings, 1 reply; 4+ messages in thread
From: Gáspár Lajos @ 2007-08-29  9:42 UTC (permalink / raw)
  To: Andy Cristina; +Cc: netfilter

Andy Cristina írta:
> I've been attempting to play with netfilter_queue to see how effective
> a certain similarity hashing technique would work for identifying
> parts of documents being sent out over the network, but I haven't had
> much progress even getting the test program to work.
Just a few questions:

- Why do you want to do such things?
- How would you come over on the compressed files, MIME encodings?
- Are you attempting to stop some information thiefing?
> I can compile and link nfq_test.c fine, using both the old versions of
> libnfnetfiler and libnetfilter_queue available from ubuntu's apt, and
> by using the newest released versions compiled from source.
>
> However, in any case when I run the compiled nfq_test, the program
> seems to do nothing after setting the packet copy mode.  So it seems
> to me as if it is perpetually waiting for a packet to be sent over the
> netlink, but one never arrives, no matter how much network traffic I
> have.
>
> Am I missing some vital piece of setup?  When I run nfq_test, there
> are two netfilter modules loaded.  Should there be more?  Do they need
> to be configured somehow?  Is this the expected behavior?
>
> I have tested this both on my ubuntu install and on a friend's debian,
> both machines exhibit the same behavior.  Any help is certainly
> appreciated.
>
>   
Swifty




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

* Re: Netfilter_queue test program question
  2007-08-29  9:42 ` Gáspár Lajos
@ 2007-08-29 13:21   ` Andy Cristina
  2007-08-29 17:57     ` Andy Cristina
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Cristina @ 2007-08-29 13:21 UTC (permalink / raw)
  To: netfilter

On 8/29/07, Gáspár Lajos <swifty@freemail.hu> wrote:
> Andy Cristina írta:
> > I've been attempting to play with netfilter_queue to see how effective
> > a certain similarity hashing technique would work for identifying
> > parts of documents being sent out over the network, but I haven't had
> > much progress even getting the test program to work.
> Just a few questions:
>
> - Why do you want to do such things?
> - How would you come over on the compressed files, MIME encodings?
> - Are you attempting to stop some information thiefing?
> > I can compile and link nfq_test.c fine, using both the old versions of
> > libnfnetfiler and libnetfilter_queue available from ubuntu's apt, and
> > by using the newest released versions compiled from source.
> >
> > However, in any case when I run the compiled nfq_test, the program
> > seems to do nothing after setting the packet copy mode.  So it seems
> > to me as if it is perpetually waiting for a packet to be sent over the
> > netlink, but one never arrives, no matter how much network traffic I
> > have.
> >
> > Am I missing some vital piece of setup?  When I run nfq_test, there
> > are two netfilter modules loaded.  Should there be more?  Do they need
> > to be configured somehow?  Is this the expected behavior?
> >
> > I have tested this both on my ubuntu install and on a friend's debian,
> > both machines exhibit the same behavior.  Any help is certainly
> > appreciated.
> >
> >
> Swifty
>
>
>


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

* Re: Netfilter_queue test program question
  2007-08-29 13:21   ` Andy Cristina
@ 2007-08-29 17:57     ` Andy Cristina
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Cristina @ 2007-08-29 17:57 UTC (permalink / raw)
  To: netfilter

> However, in any case when I run the compiled nfq_test, the program
> seems to do nothing after setting the packet copy mode.  So it seems
> to me as if it is perpetually waiting for a packet to be sent over the
> netlink, but one never arrives, no matter how much network traffic I
> have.
>
> Am I missing some vital piece of setup?  When I run nfq_test, there
> are two netfilter modules loaded.  Should there be more?  Do they need
> to be configured somehow?  Is this the expected behavior?
>
> I have tested this both on my ubuntu install and on a friend's debian,
> both machines exhibit the same behavior.  Any help is certainly
> appreciated.

It is amazing what a good night's sleep does to improve your ability
to read and comprehend.  I was, of course, forgetting to setup an
iptable rule to queue packets, so now I can proceed.


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

end of thread, other threads:[~2007-08-29 17:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29  8:13 Netfilter_queue test program question Andy Cristina
2007-08-29  9:42 ` Gáspár Lajos
2007-08-29 13:21   ` Andy Cristina
2007-08-29 17:57     ` Andy Cristina

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.