Checkout the QOS modules in the kernel and the iproute package. There's plenty of examples on the net as well as mailing lists and bundled scripts that will serve as a base for what you want to do.
Also rsync and wget have bandwidth limiting options that may be easier/more suitable for what you want to do. As with everything that looks good, QOS has some undesirable effects on gross throughput and the smoothness of traffic flow so it doesnt suit everyone. I dont think you can dynamicly alter the rate of wget or rsync, but killing the process and resuming with new parameters a minute or so later via an "at" or "cron" job is easy. I am in OZ and found that with iinet, one has to always be aware of the dynamic change of ADSL rates that occur. Currently I am on 960/7616 up/down and it does go randomly go up or down. In the worst case you could be limiting at a ceiling of 512k when you have ~8M+ available (with QOS you need to set a ceiling rate equal to whats available) Never did find a reliable way around that, but I have since dropped QOS as with these rates it just isn't needed on a home system. BillK On Sun, 2005-07-17 at 18:46 -0400, [EMAIL PROTECTED] wrote: > Hi all, > Here in Australia the internet access plan I have is capped at 12GB > downloads/month during "peak" hours and then an additional 24GB/month during > "offpeak" hours, ie 2am - 9am. Rather than sit up until 2am to kick off a > download, I was wondering if it was possible to somehow throttle a connection, > or even a port, so that I could kick off the down load at say 11pm with the > connection throttled to only a few KB/s and then at say 2am, a cron job will > unthrottle it back to its full speed hence making most use of the offpeak > time. > I'm currently using gshield on top of iptables as my firewall. > > Any thoughts greatly appreciated. > Andrew -- William Kenworthy <[EMAIL PROTECTED]> Home! -- gentoo-user@gentoo.org mailing list