[4813] in linux-announce channel archive

home help back first fref pref prev next nref lref last post

Linux-Announce Digest #106

daemon@ATHENA.MIT.EDU (Digestifier)
Tue Apr 19 11:13:07 2005

From: Digestifier <Linux-Announce-Request@senator-bedfellow.mit.edu>
To: Linux-Announce@senator-bedfellow.mit.edu
Reply-To: Linux-Announce@senator-bedfellow.mit.edu
Date:     Tue, 19 Apr 2005 11:13:04 EDT

Linux-Announce Digest #106, Volume #5          Tue, 19 Apr 2005 11:13:04 EDT

Contents:
  IpTables ROPE 20050418 - packet match rule scripting language (Chris Lowth)

----------------------------------------------------------------------------

From: Chris Lowth <chris@lowth.com>
Subject: IpTables ROPE 20050418 - packet match rule scripting language
Date: 18 Apr 2005 15:50:05 GMT

A new version of "Rope" has been released. Changes since the last 
announcement include...

 . Extended handling of IP and MAC address strings in scripts.

ROPE is a scritable packet 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.

A simple 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 trivial ROPE script to provide this
logic...

$tcp_source 80 eq assert            # check that 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" and compiled as "contlen.rp",
then it can be installed into an Iptables chain using a command like.

iptables -A FORWARD -m rope --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/              #
##########################################################################


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: Linux-Announce-Request@NEWS-DIGESTS.MIT.EDU

You can submit announcements to be moderated via:

    Internet: linux-announce@NEWS.ORNL.GOV

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi				pub/Linux
    tsx-11.mit.edu				pub/linux
    sunsite.unc.edu				pub/Linux

End of Linux-Announce Digest
******************************

home help back first fref pref prev next nref lref last post