From owner-freebsd-isp Sun Mar 18 22:26:26 2001 Delivered-To: freebsd-isp@freebsd.org Received: from shell.csocs.com (csocs.com [63.175.234.65]) by hub.freebsd.org (Postfix) with ESMTP id 6268337B718 for ; Sun, 18 Mar 2001 22:26:23 -0800 (PST) (envelope-from admin@csocs.com) Received: from csocs.com (wolfman@Bdialup79.chyn.uswest.net [209.181.14.238]) by shell.csocs.com (8.11.2/8.11.2) with ESMTP id f2J6NJX18224 for ; Sun, 18 Mar 2001 23:23:20 -0700 (MST) (envelope-from admin@csocs.com) Message-ID: <3AB5A643.1D6D1AEA@csocs.com> Date: Sun, 18 Mar 2001 23:25:07 -0700 From: J & C Frazier Organization: CSOCS Internet Services X-Mailer: Mozilla 4.76 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-isp@FreeBSD.ORG Subject: Re: Bandwidth limits References: <3AB59DE3.801B23C9@csocs.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Also, as a side question: Is there any performance increase/decrease or noticable ping differences in using a queue? What is generally the correlation between the bandwidth limit and the queue size? Just curious. Thanks again. J & C Frazier wrote: > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message