Re: ftp.archlinux.org rate limiting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2009/11/23 Gerardo Exequiel Pozzi <vmlinuz386@xxxxxxxxxxxx>:
> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux