From: Michal Martinek <michal.martinek@siemens.com>
To: Cedric Blancher <blancher@cartel-securite.fr>
Cc: netfilter@lists.netfilter.org
Subject: Re: netfilter_queue: how to obtain address info from queued packet
Date: Tue, 23 Jan 2007 12:53:48 +0100 [thread overview]
Message-ID: <45B5F74C.9060903@siemens.com> (raw)
In-Reply-To: <1169548315.4178.61.camel@anduril.intranet.cartel-securite.net>
Cedric Blancher wrote:
> Le mardi 23 janvier 2007 à 11:18 +0100, Michal Martinek a écrit :
>>> Do you know the STRING module ?
>> I'm afraid not. Can you give me some explanation (or link)?
>
> http://www.google.com/search?q=netfilter+string
>
> By the way, string match is completely irrelevant to your question as it
> would allow you to match a given packet with a fixed already known
> value, not to extract a value you don't know from the packet.
>
> What you want to achieve is a conntrack helper. You can have a look at
> existing ones, such as ip_conntrack_ftp, ip_conntack_irc, etc. You could
> also use QUEUE target to do the job in userland.
Thanks for help, I've already written some userspace packet analyzer
acting as a NFQUEUE target, but the problem is, that not all of the
packets I'd like to handle (mostly drop) are recognizable. It is a video
stream, in which I can detect only some "key packets", but the rest
remains unclear.
The easiest would be (at least I think), to drop everything on the port
where I've detected those "key packets". But I don't know how to obtain
the port number inside the (NF)QUEUE handler.
Do you think, that conntrack helper will help me with it?
next prev parent reply other threads:[~2007-01-23 11:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-23 10:03 netfilter_queue: how to obtain address info from queued packet Michal Martinek
2007-01-23 10:10 ` Gáspár Lajos
2007-01-23 10:18 ` Michal Martinek
2007-01-23 10:27 ` Gáspár Lajos
2007-01-23 10:40 ` Michal Martinek
2007-01-23 11:49 ` Gáspár Lajos
2007-01-23 10:31 ` Cedric Blancher
2007-01-23 11:53 ` Michal Martinek [this message]
2007-01-23 12:33 ` Cedric Blancher
2007-01-23 12:50 ` Michal Martinek
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=45B5F74C.9060903@siemens.com \
--to=michal.martinek@siemens.com \
--cc=blancher@cartel-securite.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox