Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a 100Mbit/s home lan. One box is set up with proftpd. Downloading and uploading from/to proftpdbox (from other computers IN LAN ie internal) is capped at ~2000kb/s. The speed should be 4-5x that!
Code:
ServerName "joe's ftp running on gentoo"
Bind "192.168.1.102"
ServerType standalone
DefaultServer on
Port 7001
PassivePorts 60000 61000
MasqueradeAddress 70.25.246.53
Umask 022
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 30
TimeoutNoTransfer 60
TimeoutIdle 60
User proftpd
Group proftpd
DefaultRoot ~
RequireValidShell off
DefaultTransferMode binary
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
TransferRate RETR 0
TransferRate STOR 0
TransferRate STOU 0
TransferRate APPE 0
AllowOverwrite on
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
#<Anonymous ~ftp>
# User ftp
# Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
# MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE>
# DenyAll
# </Limit>
#</Anonymous>
<Anonymous ~big>
User big
Group ftp
AnonRequirePassword on
MaxClients 10 "The server is full, hosting %m users"
UserAlias private big
UserAlias upload big
AllowOverwrite on
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Limit WRITE>
Deny from all
</Limit>
<Directory incoming>
<Limit READ WRITE DIRS STOR CWD CDUP>
AllowAll
</Limit>
</Directory>
</Anonymous>
Good call, however that isn't the case in this particular situation... I can ftp to an xbox (also on the lan) and upload at ~8-9 megabytes/s.
In addition, I powered down all boxes on the lan except the proftpdbox and my primary workstation (thus ensuring no bandwidth is being used elsewhere) and still I only get transfers up to 2000kb/s.
FTPbox to xbox yields 367602169 bytes sent in 52.7 secs (6.8e+03 Kbytes/sec)
Speed looks OK... also worth mentioning all nics are connected at full duplex... I believe this isolates the problem to a configuration-error in proftpd.
The last few lines you mentioned above don't affect transfer rate... they are limits placed on users (or in this case no limits) as to what commands they are allowed to issue.
Also worth mentioning is I tried changing TransferRate STOR 0 to TransferRate STOR 20, and I successfully lowered my upload cap to 20kb/s. However, when changing it to TransferRate STOR 10000 (setting it to 10mb/s) the speed is still capped at 2000kb/s.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.