NetFilter
[Top] [All Lists]

Re: is it possible to block ip packets that contains experimental tcp op

To: netfilter@lists.netfilter.org
Subject: Re: is it possible to block ip packets that contains experimental tcp options ?
From: Glenn Terjesen <glenn@webcat.no>
Date: Tue, 22 May 2007 10:58:24 +0200
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
In-reply-to: <4651E483.9000204@plouf.fr.eu.org>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
Organization: WebCat AS
References: <F163413C9250D211A55C0060979D5280016AB361@hertz.rad.nd.edu> <1179747134.32083.19.camel@bathory.webcat.no> <4651E483.9000204@plouf.fr.eu.org>
Reply-to: glenn@webcat.no
Sender: netfilter-bounces@lists.netfilter.org
Thanks allot Pascal,

iptables -A FORWARD -p tcp --tcp-option 76 -j REJECT

seems to be working.


On Mon, 2007-05-21 at 20:27 +0200, Pascal Hambourg wrote:
> Hello,
> 
> Glenn Terjesen a écrit :
> > What i meant with "experimental tcp options" is that my ids (snort)
> > keept logging these "experimental tcp options"
> > 
> > #
> > code 76
> > length 8
> > data 01019DEDBEF00005
> > 
> > I know this aint a snort list, but my servers don't serve any services
> > that require this kind of traffic.
> > 
> > So i was wondering if iptables has any way of blocking these.
> 
> If you have a black list of options you want to drop (or a white list of 
> allowed options), what about the "--tcp-option" option of the "tcp" match ?
> 
> > These to magic lines fixed it all
> > iptables -A FORWARD -p tcp --tcp-flags ALL ALL -j DROP
> > iptables -A FORWARD -p tcp --tcp-flags ALL NONE -j DROP
> 
> I wonder how these rules could drop packets according to TCP options. 
> TCP flag combinations are not TCP options.
> 
> 
-- 
Mvh Glenn Terjesen @ Webcat AS
Tlf: +47 37 02 20 20
E-post: support@webcat.no


<Prev in Thread] Current Thread [Next in Thread>