From: Amin Azez <azez@ufomechanic.net>
To: netfilter-devel@lists.netfilter.org
Subject: Re: iptables http problems
Date: Fri, 28 Apr 2006 07:05:51 +0100 [thread overview]
Message-ID: <4451B0BF.4030800@ufomechanic.net> (raw)
In-Reply-To: <op.s8nue2ddextast@localhost.localdomain>
Paolo Cerrito wrote:
> Hi, i'm writing a userspace application, using nfnetlink_queue. Can i
> write a rule for iptables that send on a queue http packets? the problem
> is that i have to distinguish the packets for apllication layer
> protocols. Is there a way for that?
You could look at: http://l7-filter.sourceforge.net/
Which is an iptables module that recognizes application layer protocols.
Be aware that it is hard to do reliable patterns for some applications,
and also that in order to recognize a layer 7 application iptables must
be monitoring the connection when it starts.
Any connections already active before the rule is active might not be
recognized.
Further realize, that it takes a few packets sometimes to gather enough
data to recognize the application layer protocol, especially if someone
is trying to hide their traffic by using very very small packets, and so
you may not recognize the application layer on the first packet, so you
may not be able to use this for totally blocking data based on
application layer as some packets may get through before classification
is complete.
Sam
prev parent reply other threads:[~2006-04-28 6:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-27 9:38 iptables http problems Paolo Cerrito
2006-04-27 12:02 ` David Vogt
2006-04-28 6:05 ` Amin Azez [this message]
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=4451B0BF.4030800@ufomechanic.net \
--to=azez@ufomechanic.net \
--cc=netfilter-devel@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 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.