From owner-freebsd-isp Mon Mar 19 4:50:25 2001 Delivered-To: freebsd-isp@freebsd.org Received: from news.lucky.net (news.lucky.net [193.193.193.102]) by hub.freebsd.org (Postfix) with ESMTP id CD08837B71A for ; Mon, 19 Mar 2001 04:50:15 -0800 (PST) (envelope-from news@news.ntu-kpi.kiev.ua) Received: (from mail@localhost) by news.lucky.net (8.Who.Cares/8.Who.Cares) id OTI08947 for freebsd-isp@freebsd.org; Mon, 19 Mar 2001 14:50:12 +0200 (envelope-from news@news.ntu-kpi.kiev.ua) From: "Andrey Simonenko" To: freebsd-isp@freebsd.org Subject: Re: Bandwidth limits Date: Mon, 19 Mar 2001 14:31:37 +0300 Organization: NTUU "KPI" Message-ID: <994ued$lnm$1@igloo.uran.net.ua> References: <3AB59DE3.801B23C9@csocs.com> X-Trace: igloo.uran.net.ua 985005325 22262 10.18.54.109 (19 Mar 2001 12:35:25 GMT) X-Complaints-To: newsmaster@news.ntu-kpi.kiev.ua X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org As I know you should specify IPFW pipes defore their usage. J & C Frazier wrote in message news:3AB59DE3.801B23C9@csocs.com... > I have a few individuals who are running games servers from their > shell accounts. I don't have a problem with it really, but I would like > > to establish a bandwidth limit on 2 IP's specifically to prevent > possible > problems later on once their hosts become more well known. Right > now I have the following firewall config set up: > > ipfw add 100 pipe 1 ip from any to any in > ipfw add 200 pipe 2 ip from any to any out > ipfw pipe 1 config mask dst-ip 0xffffffff > ipfw pipe 2 config mask src-ip 0xffffffff > > Basically all I have set up is a basic dummynet to monitor bandwidth > usage via cron scripts. I have tried to add other rules to limit the > bandwidth on my customers as shown below: > > ipfw add 100 pipe 1 ip from any to any in > ipfw add 200 pipe 2 ip from any to any out > ipfw pipe 1 config mask dst-ip 0xffffffff bw 256Kbytes/s queue 10Kbytes > ipfw pipe 2 config mask src-ip 0xffffffff bw 256Kbytes/s queue 10Kbytes > > But that effects all IP's on the system and causes a major slowdown. > I'm not extremely familiar with ipfw and what all I can do with it yet > other then what I've read on the man pages. I'm hoping some of you > experts that deal with this type of thing all the time might be able to > enlighten me or give me a few ideas. Thanks. > > J.C. Frazier > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message