From owner-freebsd-questions Fri Feb 14 16: 7:24 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4ABBE37B401 for ; Fri, 14 Feb 2003 16:07:23 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 679C643F85 for ; Fri, 14 Feb 2003 16:07:22 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.3/8.12.3) with ESMTP id h1F07KrX003647; Fri, 14 Feb 2003 19:07:21 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E4D84B8.1000102@potentialtech.com> Date: Fri, 14 Feb 2003 19:07:20 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "J. Scott Edwards" Cc: questions@freebsd.org Subject: Re: Is there a way to slow down file transfers? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 J. Scott Edwards wrote: > I have a remote machine running 4.7 which is streaming audio using > icecast. I was hoping to back up the machine by transferring the files to > my local machine and doing the backup here. However when I try to copy > any (non-tiny) files, using scp for example, it floods the network > connection and messes up the audio stream. Is there any way I can > transfer files from it at a much slower rate, something like 1/8 normal? You could use IPFW's traffic shaper stuff (assuming you have IPFW and dummynet in your kernel ... although I think you might be able to load both of these as a kld nowadays) Something like: ipfw add pipe 1 tcp from any to any 22 ipfw add pipe 1 tcp from any 22 to any ipfw pipe 1 config bw 300Kbit/s Would limit total ssh traffice to 300Kbit/second. Read 'man ipfw' for extensive explanation of ipfw's and dummynet's capabilities. And don't be afraid to ask specific questions, getting the hang of ipfw rules takes a bit of work. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message