All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Huascar Tejeda <htejeda@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: netfilter hook/tuple question
Date: Mon, 12 Jul 2010 12:23:41 +0930	[thread overview]
Message-ID: <201007121223.42052.rusty@rustcorp.com.au> (raw)
In-Reply-To: <AANLkTikanogevLAZ30XgK7oV4bijuTz5lZdkznWlisuC@mail.gmail.com>

On Fri, 9 Jul 2010 05:08:52 am Huascar Tejeda wrote:
> Hello Rusty Russell,
> 
> I'm starting to learn about netfilter hooks programming and I have a small
> question. Is it possible to see the packets in my hook even if it already is
> in a tuple?

Hi Huascar,

   Sorry for the delayed response.  This question might have been better
directed at the netfilter-devel mailing list.

> My hook reads HTTP requests looking for QueryStrings. it's running in a
> linux gateway and I have these scenarios:
> 
>  - From a linux client: if I access google.com I can see the request for the
> first time, but since Linux re-uses source-port I don't see it again in my
> hook.
>  - From a windows client: it works very well cause windows always use
> different source-port so it is handled as a new connection every time.
> 
> Here is my code: http://codepad.org/T6SESSRg

AFAICT, this should work...  It's pretty simple.

Rusty.

           reply	other threads:[~2010-07-12  2:53 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <AANLkTikanogevLAZ30XgK7oV4bijuTz5lZdkznWlisuC@mail.gmail.com>]

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=201007121223.42052.rusty@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=htejeda@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.