From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 10d4db,f7aa64d5e06795b6,start X-Google-Attributes: gid10d4db,public X-Google-Language: ENGLISH,ASCII-7-bit Return-Path: Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!prodigy.com!in.100proofnews.com!in.100proofnews.com!cyclone.bc.net!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Date: Tue, 30 Nov 2004 10:48:17 CST Message-ID: <41ACA43E.60302@lowth.com> From: Chris Lowth User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 Subject: ANNOUNCE: Rope 20041121b - IpTables match module scripting language Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on ak47.algebra.com * 0.1 RCVD_IN_SORBS RBL: SORBS: sender is listed in SORBS * [80.2.218.11 listed in dnsbl.sorbs.net] X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 Newsgroups: comp.os.linux.announce X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAQaykUiFvAtx2nXvNAQHX7wIAkuCNq5xyea3hOCbSvJFOxhU6z68hHPNr DZ5vhzNlJlqKHqsayr231w4I7nGk+oGPdawmnjD/pyXNB4mpHRm8sg== =xiks Xref: g2news1.google.com comp.os.linux.announce:484 ROPE is a match module for Linux iptables / Netfilter. It allows packet matching criteria to be written using a simple scripting language which is executed in and by the Linux kernel. It is available under the GPL from http://www.lowth.com/rope. The current version should be considered experimental; dont deploy on mission-critical systems, but please feel free to download, explore and feedback. An example :- a rule that limits the size of pages downloaded over HTTP based on the Content-Length header could prevent long downloads before they even start. Here's a simple ROPE script to provide this logic... $tcp_source 80 eq assert # check it's HTTP expecti_to( "Content-Length: " ) # find the header expect_while({isdigit}) put($n) # lift the length value if( atoi($n) 1000000 gt { yes } ) # match: if too long no # dont match: if not If this script is stored as "contlen.rope", then it is installed into an Iptables chain using a command like. iptables -A FORWARD -m rope --script contlen -j DROP For more information (including a more thorough version of the example script), please refer to: http://www.lowth.com/rope ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################