LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2005, 05:15 PM   #1
joekr
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
[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.
 
Old 07-10-2005, 05:18 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
That may be caused by hub bandwidth being shared with other traffic...
 
Old 07-10-2005, 05:23 PM   #3
joekr
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 07-10-2005, 05:36 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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>
 
Old 07-10-2005, 05:49 PM   #5
joekr
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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.

Last edited by joekr; 07-10-2005 at 06:01 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proftpd: Can reach withing LAN but not outside LAN Harlin Linux - Networking 4 07-18-2005 12:57 AM
How to gain access internal LAN Using OpenVPN? ltam68 Linux - Networking 2 06-23-2005 08:32 PM
ProFtpd, ports and internal/external IP gbj Linux - Networking 6 03-11-2005 05:00 PM
Restricting internal LAN users access otisthegbs Linux - Security 15 05-17-2004 12:38 PM
LAN internal mailserver no internet access guanyu Linux - Networking 8 11-14-2002 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration