2009/11/23 Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>:
Phillip Smith wrote:
Hi all,
Could someone share the details of how the 50kbps rate-limit is implemented on ftp.archlinux.org?
I know Google gives me plenty of results for rate-limiting with iptables and tc but I've never had much success with tc, and the ftp.archlinux.org rate-limiting seems to work perfectly... So why try reinventing the wheel? :)
Cheers, ~p
Hi
probably using this (see man vsftpd.conf) ;)
*anon_max_rate* The maximum data transfer rate permitted, in bytes per second, for anonymous clients.
Further to this, I've got rate limiting on HTTP working too using mod_bw which I've added to the AUR. Here's the config in httpd.conf for anyone else that's interested: <IfModule mod_bw.c> BandwidthModule On ForceBandWidthModule On # Files with these extensions, larger than 1kb limited to 50kbps LargeFileLimit .test 1 50000 LargeFileLimit .pkg.tar.gz 1 50000 </IfModule> Works a treat! :D