Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pure-ftpd and strange timeouts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lonex
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2004
Posts: 109
Location: Karlsruhe, Germany

PostPosted: Wed Apr 19, 2006 5:41 pm    Post subject: pure-ftpd and strange timeouts Reply with quote

Hi,

I'm currently having a strange issue with pure-ftpd.
Whenever someone uploads a file, after about one minute, he gets disconnected from the server and in order to complete his transfer, has to re-login and resume the upload. But after another minute, he gets disconnected again. Always with the following error message in the log files:

Code:
[INFO] Timeout (no new data for 300 seconds)


My /etc/conf.d/pure-ftpd is as follows:

Code:
# Config file for /etc/init.d/pure-ftpd
##Comment variables out to disable its features, or change the values in it... ##

## This variable must be uncommented in order for the server to start ##
IS_CONFIGURED="yes"

## FTP Server,Port (separated by comma) ##
## If you prefer host names over IP addresses, it's your choice :
## SERVER="-S ftp.rtchat.com,21"
## IPv6 addresses are supported.
## !!! WARNING !!!
## Using an invalid IP will result in server not starting and reporting
## a good start. Work is being done to solve that in:
## http://bugs.gentoo.org/show_bug.cgi?id=75861
#SERVER="-S 192.168.0.1,21"
SERVER="-S 85.10.200.171,2121"

## Number of simultaneous connections in total, and per ip ##
MAX_CONN="-c 100"
MAX_CONN_IP="-C 2"

## Start daemonized in background ##
DAEMON="-B"

## Don't allow uploads if the partition is more full then this var ##
DISK_FULL="-k 90%"

## If your FTP server is behind a NAT box, uncomment this ##
#USE_NAT="-N"

## Authentication (others are 'pam', ...)##
## Further infos in the README file.
AUTH="-l pam"

## Change the maximum idle time. (in minutes. default 15)
TIMEOUT="-I 5'"

## Use that facility for syslog logging. It defaults to 'ftp'
## Logging can be disabled with '-f none' .
#LOG="-f facility"

## Misc. Others ##
MISC_OTHER="-0 -4 -A -E -H -L 32000:16 -O stats:/var/log/pureftpd.log -u 100 -U 117:007 -w -Y 2"

#
# Use these inside $MISC_OTHER
# More can be found on "http://pureftpd.sourceforge.net/README"
#
# -A [ chroot() everyone, but root ]
# -e [ Only allow anonymous users ]
# -E [ Only allow authenticated users. Anonymous logins are prohibited. ]
# -i [ Disallow upload for anonymous users, whatever directory perms are ]
# -j [ If the home directory of a user doesn't exist, auto-create it ]
# -M [ Allow anonymous users to create directories. ]
# -R [ Disallow users (even non-anonymous ones) usage of the CHMOD command ]
# -x [ In  normal  operation mode, authenticated users can read/write
#       files beginning with a dot ('.'). Anonymous users can't, for security reasons
#       (like changing banners or a forgotten .rhosts). When '-x' is used, authenticated
#       users can download dot-files, but not overwrite/create  them,  even  if they own
#       them. ]
# -X [ This  flag  is  identical  to  the  previous one (writing
#       dot-files is prohibited), but in addition, users can't even *read* files and
#       directories beginning with a dot (like "cd .ssh"). ]
# -D [ List files beginning with a dot ('.') even when the client doesn't
#      append the '-a' option to the list command. A workaround for badly
#      configured FTP clients. ]
# -G [ Disallow renaming. ]
# -d [ Send various debugging messages to the syslog. ONLY for DEBUG ]
# -F <fortune file> [ Display a fortune cookie on login. Check the README file ]
# -H [ By default, fully-qualified host names are logged. The '-H' flag avoids host names resolution. ]


I already have tried to set different timeout options, the result is always the same, only the error message changes to the amount of seconds I have set in the config file.

If anyone ever experienced the same weirdness and knows a solution to it, I'm happy to get it. :)
Back to top
View user's profile Send private message
dhackfield
n00b
n00b


Joined: 19 Apr 2006
Posts: 2

PostPosted: Wed Apr 19, 2006 6:30 pm    Post subject: Reply with quote

this may be a reverse dns lookup problem.
once i had to disable reverse lookup on a similar problem.
when source attached to ftp a reverse lookup is executed
and if not able to resole hangs the traffic? just a guess.
Back to top
View user's profile Send private message
lonex
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2004
Posts: 109
Location: Karlsruhe, Germany

PostPosted: Wed Apr 19, 2006 6:45 pm    Post subject: Reply with quote

Hmm, shouldn't be an issue, I've set the -H flag.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum