Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2003 19:07:20 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        "J. Scott Edwards" <sedwards@xmission.com>
Cc:        questions@freebsd.org
Subject:   Re: Is there a way to slow down file transfers?
Message-ID:  <3E4D84B8.1000102@potentialtech.com>
References:  <AAE4ACF2-4056-11D7-95D6-0005025E566F@antsclimbtree.com> <Pine.GSO.4.53.0302141559060.18187@xmission.xmission.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E4D84B8.1000102>