Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* IpTables ROPE 20050426 - packet match rule scripting language
@ 2005-05-01 19:21 Chris Lowth
  2005-12-12 23:08 ` IpTables ROPE 20051212 " Chris Lowth
  2006-01-05 11:13 ` IpTables ROPE 20051223 " Chris Lowth
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Lowth @ 2005-05-01 19:21 UTC (permalink / raw)


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

 . Minor fix to Bittorrent identification script (bittorrent.rope)
 . Compiled script files are now security checked before being loaded 
into the kernel (they MUST be owned by root, and be writable by no-one 
else).

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/              #
##########################################################################



^ permalink raw reply	[flat|nested] 3+ messages in thread

* IpTables ROPE 20051212 - packet match rule scripting language
  2005-05-01 19:21 IpTables ROPE 20050426 - packet match rule scripting language Chris Lowth
@ 2005-12-12 23:08 ` Chris Lowth
  2006-01-05 11:13 ` IpTables ROPE 20051223 " Chris Lowth
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Lowth @ 2005-12-12 23:08 UTC (permalink / raw)


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

 . Fix to EDonkey2000 identification script
 . Fix to iptables save/restore format strings
 . New actions:
  . eqi, nei -- case insensitive equality checking
  . abs -- absolute integer value of a number
  . eval -- execute a block and trap (catch) the exit status
  . sysexec -- run a shell command (for use in UserLand mode only)
 . Correction to character set checked by "isuri"
 . Makefile-driven patching of
  . Kernel sources
  . Iptables sources
  . Patch-o-matic-ng
 . Pre-built binary version for IpCop 1.4.10

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.

Sample scripts available with the software include identification of various
P2P protocols.

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/              #
##########################################################################



^ permalink raw reply	[flat|nested] 3+ messages in thread

* IpTables ROPE 20051223 - packet match rule scripting language
  2005-05-01 19:21 IpTables ROPE 20050426 - packet match rule scripting language Chris Lowth
  2005-12-12 23:08 ` IpTables ROPE 20051212 " Chris Lowth
@ 2006-01-05 11:13 ` Chris Lowth
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Lowth @ 2006-01-05 11:13 UTC (permalink / raw)


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

 . Support for linux 2.6 kernels (not SMP)
 . Integration with ipset match module
 . Simplified installation and building
 . New OpenNAP protocol identification script
 . Improved version reporting and handling
 . Sample rc.d script for use with Ipcop
 . Various other minor fixes and enhancements

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/              #
##########################################################################



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-05 11:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-01 19:21 IpTables ROPE 20050426 - packet match rule scripting language Chris Lowth
2005-12-12 23:08 ` IpTables ROPE 20051212 " Chris Lowth
2006-01-05 11:13 ` IpTables ROPE 20051223 " Chris Lowth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox