From owner-freebsd-isp Sun Mar 18 21:50:48 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 1CBB237B719 for ; Sun, 18 Mar 2001 21:50:45 -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 f2J5laX18043 for ; Sun, 18 Mar 2001 22:47:36 -0700 (MST) (envelope-from admin@csocs.com) Message-ID: <3AB59DE3.801B23C9@csocs.com> Date: Sun, 18 Mar 2001 22:49:24 -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: Bandwidth limits Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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