Proftpd is slow getting directory list
Proftpd is slow getting directory list
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.
The reason that it takes awhile to login is you need to add the
"UseReverseDNS off" line to proftpd.conf
Example:-
Cheers
"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
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
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
What I was trying to point out is that I cant seem to find this
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.
Code: Select all
<Global>
PassivePorts 49152 65534
IdentLookups off
MaxClients 5
AllowRetrieveRestart on
AllowStoreRestart on
AllowOverwrite on
</Global>
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.
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
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
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.
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.
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
ftp://82.69.33.117/
I meant that address.
Also I can access it through Mozilla fine :s. Though my mate access it through Mozilla and sees
But not the uploads directory.
Oh do I port forward the passive ports?
I meant that address.
How I do that, edit my config again i suppose.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)
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
Oh do I port forward the passive ports?