From: Jason Boxman Date: Thu, 25 Mar 2004 02:47:58 +0000 Subject: [LARTC] Matching small packets using tcng Message-Id: <200403242147.58420.jasonb@edseek.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi. Does anyone know how to create a rule using tcng that functions like this iptables rule? iptables -t mangle -A PREROUTING -p tcp --dport 22 --syn -m \ state --state NEW -m length --length 40:68 -j MARK --set-mark 22 I tried defining something like this, but it seems to incorrectly specify a length constraint: class( <$ack> ) if ip_hl = 0x5 && (ip_len & 0xffc0) && (raw[33].b >> 4) & 1; Thanks! -- Jason Boxman Perl Programmer / *NIX Systems Administrator Shimberg Center for Affordable Housing | University of Florida http://edseek.com/ - Linux and FOSS stuff _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/