Date: Wed, 4 Aug 2004 00:15:25 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Jonathan <poisondart@optonline.net> Cc: freebsd-questions@freebsd.org Subject: Re: Bandwidth Limiting Message-ID: <20040804051525.GC85344@dan.emsphone.com> In-Reply-To: <4110130F.9080807@optonline.net> References: <4110130F.9080807@optonline.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 03), Jonathan said: > Hello, I run FreeBSD 5-2.1 on a serv4er box used for my company > (StreamForce Hosting Solutions). I was wondering if there is an > application i can install or method of limiting per user bandwidth by > like a certain group or class. If not is there a way to limit bandwidth > for all non super user accounts. ipfw rules plus dummynet should be able to do what you want. ipfw can filter on the uid or gid of the process sending/receiving the packet, so this should cause all non-root packets to get filtered through dummynet pipe 1 (which you could configure to run at 90% of your true capacity): ipfw add 400 skipto 402 ip from any to any uid root ipfw add 401 pipe 1 ip from any to any Hopefully ipfw will soon get the ability to use ALTQ which was recently merged into -current, so you can do some more advanced limiting. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040804051525.GC85344>