All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] New match module: byte rate match
@ 2003-01-20 15:58 Chris Wilson
  2003-01-21 10:38 ` Nigel Kukard
  2003-01-21 15:51 ` Laszlo Valko
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Wilson @ 2003-01-20 15:58 UTC (permalink / raw)
  To: netfilter-devel

Hi all,

NetServers.co.uk would like to submit a new module for your perusal and
hopefully for inclusion in Netfilter. It's based on ipt_limit, but matches
the number of bytes per second instead of the number of packets. This
means that it can be used for basic quality-of-service implementation,
thus:

# limit SMTP traffic from A to B to 4kbytes/s
iptables -A FORWARD -s A -d B -p tcp --dport 25 -m bytelimit --limit 
	4000/s -j ACCEPT
iptables -A FORWARD -s A -d B -p tcp --dport 25 -j DROP

# classify the first 8kbytes/s of SSH traffic as high priority
iptables -t mangle -A FORWARD -p tcp --dport 22 -m bytelimit --limit
        8000/s -j TOS --set-tos minimize-delay
iptables -t mangle -A FORWARD -p tcp --dport 22 -j TOS --set-tos normal

You can download the patches against iptables-1.2.7a userspace and kernel
2.4.19 here:

  'http://www.netservers.co.uk/gpl/iptables-bytelimit-030116.tar.gz'

And more information about us, including other GPL software, here:

  'http://www.netservers.co.uk/gpl/'

The module is licensed under the GPL, as it is based on ipt_limit. At this
stage, the module is only lightly tested, but it works for us. We hope it
will be useful to someone. 

Cheers, Chris.
-- 
   ___ __     _
 / __// / ,__(_)_  | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |

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

end of thread, other threads:[~2003-01-21 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-20 15:58 [PATCH] New match module: byte rate match Chris Wilson
2003-01-21 10:38 ` Nigel Kukard
2003-01-21 15:51 ` Laszlo Valko
2003-01-21 17:12   ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.