From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?G=E1sp=E1r_Lajos?= Subject: Re: netfilter_queue: how to obtain address info from queued packet Date: Tue, 23 Jan 2007 11:27:45 +0100 Message-ID: <45B5E321.90608@freemail.hu> References: <45B5DD80.70809@siemens.com> <45B5DF09.6030001@freemail.hu> <45B5E0DC.2020703@siemens.com> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <45B5E0DC.2020703@siemens.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Michal Martinek Cc: netfilter@lists.netfilter.org Michal Martinek =EDrta: > > > G=E1sp=E1r Lajos wrote: >> >> Michal Martinek =EDrta: >>> Hello all, >>> >>> I am quite a newbie to the netfilter world, so maybe my approach is=20 >>> naive. I would like to block communication coming from/to some ports = >>> according to the content of packets. Unfortunately these ports are=20 >>> not static, so port specific netfilter rule cannot be used. So my=20 >>> 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'=20 --algo kmp > >>> Is it possible to obtain some address info (source/destination=20 >>> address and ports) from the packet queued from netfilter? > >