Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Gáspár Lajos" <swifty@freemail.hu>
To: Michal Martinek <michal.martinek@siemens.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: netfilter_queue: how to obtain address info from queued packet
Date: Tue, 23 Jan 2007 11:27:45 +0100	[thread overview]
Message-ID: <45B5E321.90608@freemail.hu> (raw)
In-Reply-To: <45B5E0DC.2020703@siemens.com>


Michal Martinek írta:
>
>
> Gáspár Lajos wrote:
>>
>> Michal Martinek írta:
>>> Hello all,
>>>
>>> I am quite a newbie to the netfilter world, so maybe my approach is 
>>> naive. I would like to block communication coming from/to some ports 
>>> according to the content of packets. Unfortunately these ports are 
>>> not static, so port specific netfilter rule cannot be used. So my 
>>> question is:
>>>
>> Do you know the STRING module ?
>
> I'm afraid not. Can you give me some explanation (or link)?
Well... :) man iptables...
iptables -A FORWARD -j DROP -p tcp -m string --string 'Some string' 
--algo kmp
>
>>> Is it possible to obtain some address info (source/destination 
>>> address and ports) from the packet queued from netfilter?
>
>



  reply	other threads:[~2007-01-23 10:27 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 [this message]
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
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=45B5E321.90608@freemail.hu \
    --to=swifty@freemail.hu \
    --cc=michal.martinek@siemens.com \
    --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