LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   [Proftpd] Internal (LAN) access capped at 2MB/S? (https://www.linuxquestions.org/questions/linux-networking-3/%5Bproftpd%5D-internal-lan-access-capped-at-2mb-s-341960/)

joekr 07-10-2005 05:15 PM

[Proftpd] Internal (LAN) access capped at 2MB/S?
 
Hey all

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>

Any help would be appreciated.

keefaz 07-10-2005 05:18 PM

That may be caused by hub bandwidth being shared with other traffic...

joekr 07-10-2005 05:23 PM

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.

keefaz 07-10-2005 05:36 PM

From the ftp box, could you upload to the xbox to check speed ?
Also I noticed in your proftpd.conf (at the bottom) :

<Limit READ WRITE DIRS STOR CWD CDUP>
AllowAll
</Limit>

Souldn't it be :
<Limit READ WRITE DIRS STOR CWD CDUP>
Allow from All
</Limit>

joekr 07-10-2005 05:49 PM

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.


All times are GMT -5. The time now is 09:43 PM.