From owner-freebsd-questions Thu Oct 18 1: 6:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mip.co.za (puck.mip.co.za [209.212.106.44]) by hub.freebsd.org (Postfix) with ESMTP id A78BC37B407 for ; Thu, 18 Oct 2001 01:06:22 -0700 (PDT) Received: from patrick (patrick.mip.co.za [10.3.13.181]) by mip.co.za (8.9.3/8.9.3) with SMTP id KAA59011; Thu, 18 Oct 2001 10:06:06 +0200 (SAST) (envelope-from patrick@mip.co.za) From: "Patrick O'Reilly" To: "Weldon S Godfrey 3" , "Joshua Holland" Cc: Subject: RE: ftp hogging bandwidth Date: Thu, 18 Oct 2001 10:09:08 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20011017135212.L59186-100000@joule.excelsus.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes - look into ipfw, and specifically its DUMMYNET feature. Check this in the question list archive for some more details: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1160624+0+current/freebsd-quest ions Patrick. > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Weldon S > Godfrey 3 > Sent: 17 October 2001 19:56 > To: Joshua Holland > Cc: questions@FreeBSD.ORG > Subject: Re: ftp hogging bandwidth > > > > You mean the machine is bogging down or your outside connection is getting > bogged down? > > I think the ftp session is taking your entire fractional T. I don't think > it would be slowing down your machine too much. > > IPFW I *think* has rate shaping ability. You might be able to add rules > to set ftp to a certain bandwidth. > > I am now going beyond my experience, I haven't tried to rateshape on a > freebsd box yet. > > > On Wed, 17 Oct 2001, Joshua Holland wrote: > > > I think they were ftp-ing through our box to an off site location. > > > > >I assuming that someone is ftping to a ftp server that is also your > > >nat/firewall box? > > > > > >One really cheezy way would be this: > > > > > >Have 2 nics on your server > > > > > >1 nic has the IP address for ftp. In DNS you can make that IP > be whatever > > >you want (ftp.localhost, ftp.biststeam.net, etc) > > > > > >the other nic is doing the rest of your internal lan stuff > > > > > >and since you are doing nat, you might have a 3rd nic for WAN. > > > > > > > > >if you don't have a 100Mb shared hub, or want to lower the ftp > bandwidth > > >further for some reason, you could force the dedicated ftp nic to 10Mb > > > > > > > > > > > > > > >On Wed, 17 Oct 2001, Joshua Holland wrote: > > > > > >> Hello, > > >> > > >> I help administer a FreeBSD machine that runs nat, dhcpd, mail and > > >> web servers for an organization with about 75 desktop clients. They > > >> have a 256k fractional T1. We have noticed the machine bogging down > > >> sometimes (people complaining of extremely slow web page > loading, and > > >> when I ssh in, very slow response). Top shows less than 1% of CPU > > >> being used. This last time, it seems someone was ftp-ing a 100MB > > >> file, and when they terminated the transfer, everything was fast > > >> again. Is there anyway to prevent one client or process > from hogging > > >> all that bandwidth? > > >> > > >> Joshua Holland. > > >> > > >> > > >> To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message