From owner-freebsd-net@FreeBSD.ORG Wed Feb 7 10:35:10 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 386BA16A48F for ; Wed, 7 Feb 2007 10:35:08 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 9054413C481 for ; Wed, 7 Feb 2007 10:35:08 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l17AZ3Jc063737; Wed, 7 Feb 2007 02:35:03 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l17AZ3p2063736; Wed, 7 Feb 2007 02:35:03 -0800 (PST) (envelope-from rizzo) Date: Wed, 7 Feb 2007 02:35:03 -0800 From: Luigi Rizzo To: Jan Sebosik Message-ID: <20070207023503.B63529@xorpc.icir.org> References: <45C99336.3010508@demax.sk> <45C99EF2.9010201@sk1llz.net> <45C9A55E.2080807@demax.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <45C9A55E.2080807@demax.sk>; from sebosik@demax.sk on Wed, Feb 07, 2007 at 11:09:34AM +0100 Cc: freebsd-net@freebsd.org Subject: Re: Packet rate limiter X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2007 10:35:10 -0000 On Wed, Feb 07, 2007 at 11:09:34AM +0100, Jan Sebosik wrote: > Hmm, > > but if have done traffic shaping via bps limit. But I also wanted to > limit packet rate, because P2P and skype uses small packets, but in high > volumes....And it will stop P2P and Skype if I set on 512 kbps 40 > packets/s [pps] only a trick (but sometimes a useful one) would be to pass packets to different pipes basing on the size (or protocol - the small ones tend to be UDP because with TCP you have very little control on the packet size) and then set the limit differently on the two pipes cheers luigi > > > > Newp. You're stuck to good old bps with ipfw or bps/cpse (connections > > per second established) with pf. The other method would be to use > > cisco netflow export data from a router being polled - then limiting > > traffic with one of the methods mentioned above... or just place pps > > limits on your router itself. > > > > > > Jan Sebosik wrote: > >> Hi > >> > >> is there any way how to limit packet per second [PPS] rate to > >> specified IP (group of IP) ? Linux can achieve this via IPtables. > >> I`ve searched a lot of web, but nothing interesting found (for PF, > >> IPFilter, and IPFW). > >> > >> Best regards > >> > >> --- > >> Jan Sebosik, Slovakia > >> _______________________________________________ > >> freebsd-net@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-net > >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >> > > > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"