Vsftpd - how to limit download bandwidth but unlimited upload bandwidth?
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth?
here's my vsftpd.conf anonymous_enable=NO local_enable=YES dirmessage_enable=YES connect_from_port_20=YES xferlog_enable=YES xferlog_file=/var/log/vsftpd/vsftpd.log nopriv_user=nobody chroot_list_enable=YES background=YES listen=YES text_userdb_names=YES local_root=/home/data write_enable=YES pam_service_name=vsftpd tcp_wrappers=YES ftpd_banner=Welcome to my FTP server local_max_rate=10000 max_clients=2 max_per_ip=1 I discovered that the local_max_rate clamped down the upload speeds. Undesirable. Any ideas? |
Hmz, I don't think this is possible via the config file. (could be wrong)
Morelikely you should be looking for something to limit bandwith via iptables or something ..... |
But would configuring ip tables affect other services running on the same machine ie.. web server?
|
Normally u can set this on port level with IPTABLES, so only limit bandwith to the ftp data port. And in specific from internal to external interface.
I once did something similar to this for an internal pc in my network. (limit upload bandwith) It had something to do with IPTABLES marking the packages, and another service holding down the bandwith for the marked packages. I'm not sure how I accieved this but here is the "marking rule" for IPTABLES. Perhaps google knows a way out. IPTABLES -t mangle -A FORWARD -p tcp -m multiport --destination-port 4662 -j MARK --set-mark 3 |
All times are GMT -5. The time now is 10:28 PM. |