Proftpd is slow getting directory list

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
Bucko
Power user
Posts: 229
Joined: Mon Aug 11, 2003 4:14 pm
Location: England
Contact:

Proftpd is slow getting directory list

Post by Bucko » Fri Dec 26, 2003 8:03 pm

Hiya. I use FlashFXP to connect to Gentoox Home Version 3.0C built in FTP server. Though it is awfuly slow compared to say Evolution X connections. I'm connected through a 10mp/s 16 port hub and running Windows XP Pro on my normal Computer. The net is fine on Gentoox. I just think there is somthing wrong with the FTP serer configuration.

XBoxgeek
Pro
Posts: 77
Joined: Sat Sep 27, 2003 6:55 pm
Location: London
Contact:

Post by XBoxgeek » Fri Dec 26, 2003 8:11 pm

The reason that it takes awhile to login is you need to add the
"UseReverseDNS off" line to proftpd.conf

Example:-

Code: Select all

<Global>
PassivePorts 49152 65534
IdentLookups off


MaxClients 5
AllowRetrieveRestart on
AllowStoreRestart on
AllowOverwrite on

</Global>
UseReverseDNS off
Cheers

Bucko
Power user
Posts: 229
Joined: Mon Aug 11, 2003 4:14 pm
Location: England
Contact:

Post by Bucko » Fri Dec 26, 2003 8:36 pm

Weres the .conf file?

Will i have to add your snippet in or is it already in there.

Also how do I create a publicFTP type account were it's readonly.

Ta, Bucko.

XBoxgeek
Pro
Posts: 77
Joined: Sat Sep 27, 2003 6:55 pm
Location: London
Contact:

Post by XBoxgeek » Fri Dec 26, 2003 11:23 pm

You only need to add "UseReverseDNS off" the "snippet" of code is just to show you where it goes.

The config file can be found in /etc/proftpd/proftpd.conf
any changes you make will need a restart of the ftp server for the changes to take effect.

Visit the proftpd website for example config files.

Cheers

Bucko
Power user
Posts: 229
Joined: Mon Aug 11, 2003 4:14 pm
Location: England
Contact:

Post by Bucko » Fri Dec 26, 2003 11:54 pm

What I was trying to point out is that I cant seem to find this

Code: Select all

<Global> 
PassivePorts 49152 65534 
IdentLookups off 


MaxClients 5 
AllowRetrieveRestart on 
AllowStoreRestart on 
AllowOverwrite on 

</Global>
in /etc/proftpd/proftpd.conf. I assumed the </Global> options may have been your configuration and that UseReverseDNS off can be added anywere. I'm not enitrly sure.

Edit,

I fixed it, added all the <global> options in and that reverseDNS of thing in, restart eth0 and worked. Cheers bud. Just wondering how to create a public FTP type accont.

XBoxgeek
Pro
Posts: 77
Joined: Sat Sep 27, 2003 6:55 pm
Location: London
Contact:

Post by XBoxgeek » Sat Dec 27, 2003 12:04 pm

By "Public account" I guess you mean anonymous access?

If so, here is my conf file. It allows for anonymous access to your proftpd server. It also includes one upload folder that users can drop stuff off in.

Any folders you make within /home/ftp/ will be seen by all users. Any file can be downloaded from any folder (unless it is in /home/ftp/uploads)
User can not create/delete/rename/upload files or folders. If you do not want users to upload, then do not create the uploads folder.

Hope it helps

Code: Select all

# This is a basic ProFTPD configuration file (rename it to 
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName          "FTP Server"
ServerType standalone
DefaultServer       on
RequireValidShell   off
AuthPAM             off
AuthPAMConfig       ftp
# Port 21 is the standard FTP port.
Port				21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask				022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30

# Set the user and group under which the server will run.
User				proftpd
Group				proftpd


# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
  User				ftp
  Group			ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias			anonymous ftp

 # Maximum clients with message
  MaxClients			5 "Sorry, max %m users -- try again later"


  # 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>

# An upload directory that allows storing files but not retrieving
  # or creating directories.
  <Directory uploads/*>
  
          <Limit STOR>
              AllowAll
          </Limit>

 
         <Limit WRITE DIRS READ>
            DenyAll
        </Limit>

    <Limit CWD XCWD CDUP>
      AllowAll
    </Limit>
    
  </Directory>

</Anonymous>

# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite		on
</Directory>

<Global>
PassivePorts 49152 65534
IdentLookups off


MaxClients 5
AllowRetrieveRestart on
AllowStoreRestart on
AllowOverwrite on

</Global>
UseReverseDNS off
 

Bucko
Power user
Posts: 229
Joined: Mon Aug 11, 2003 4:14 pm
Location: England
Contact:

Post by Bucko » Sun Dec 28, 2003 10:21 pm

That annoymous thing works great, but only on the LAN and not the WAN.

I port forwarded 21 to the xbox but no go. It gives an error message on my side.

An error occured opening the FTP folder. Make sure you have permission to access that folder.

Details

200 Type set to A
500 Illegal PORT command
500 LPRT not understand

When I access ftp://82.69.117/ (even though i can access http://82.69.117:8080 fine, my Zen address).

I think this is what other users are getting as well.

Though it works fine on the LAN.

XBoxgeek
Pro
Posts: 77
Joined: Sat Sep 27, 2003 6:55 pm
Location: London
Contact:

Post by XBoxgeek » Sun Dec 28, 2003 11:17 pm

The config file has absolutely nothing to do with you not being able to connect from the wan. This is probably a firewall/port forwarding issue. I use this config file and I can ftp in from anywhere.

The IP address you have in your post is not a valid ip address 82.69.117.

Good luck

User avatar
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle » Sun Dec 28, 2003 11:25 pm

make sure your ftp server is listening on the wan IP address as well as the lan IP, although it doesn't get any traffic from there this should solve (at least some of your port errors)
If you keep an open mind, will your brain fall out?

Bucko
Power user
Posts: 229
Joined: Mon Aug 11, 2003 4:14 pm
Location: England
Contact:

Post by Bucko » Sun Dec 28, 2003 11:35 pm

ftp://82.69.33.117/

I meant that address.
make sure your ftp server is listening on the wan IP address as well as the lan IP, although it doesn't get any traffic from there this should solve (at least some of your port errors)
How I do that, edit my config again i suppose.

Also I can access it through Mozilla fine :s. Though my mate access it through Mozilla and sees

Code: Select all

Index of ftp://82.69.33.117/
Up to higher level directory
But not the uploads directory.

Oh do I port forward the passive ports?

Bucko
Power user
Posts: 229
Joined: Mon Aug 11, 2003 4:14 pm
Location: England
Contact:

Post by Bucko » Thu Jan 01, 2004 12:42 pm

Bump.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests