Current time: 11-16-2024, 12:40 PM Hello There, Guest! (LoginRegister)


Post Reply 
Upgrade to stable -> proftpd not working
Author Message
chappy Offline
Junior Member
*

Posts: 17
Joined: Mar 2009
Reputation: 0
Post: #1
Upgrade to stable -> proftpd not working
Hi there,

here a new post for a better overview.
If i try to connect to my proftpd it just says:
Quote:[R] Connecting to xyz -> DNS=xyz.com IP=xyz PORT=21
[R] Connected to xyz
[R] Connection failed (Connection lost)

If i start proftpd in debug modus i get this:
Quote:london190:/# proftpd -n -d 5
- mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock'
- parsing '/etc/proftpd/proftpd.conf' configuration
- parsing '/etc/proftpd/modules.conf' configuration
- mod_tls/2.1.1: using OpenSSL 0.9.8c 05 Sep 2006
- DenyFilter: compiling deny regex '\*.*/'
- <IfModule>: using 'mod_tls.c' section at line 68
- <IfModule>: skipping 'mod_quota.c' section at line 72
- <IfModule>: skipping 'mod_ratio.c' section at line 76
- <IfModule>: using 'mod_delay.c' section at line 84
- <IfModule>: using 'mod_ctrls.c' section at line 88
- mod_ctrls/0.9.4: closing ctrls socket '/var/run/proftpd/proftpd.sock' (3)
- <IfModule>: using 'mod_ctrls_admin.c' section at line 96
xxx.yyy.de -
xxx.yyy.de - Config for Debian:
xxx.yyy.de - DeferWelcome
xxx.yyy.de - DefaultServer
xxx.yyy.de - ShowSymlinks
xxx.yyy.de - TimeoutNoTransfer
xxx.yyy.de - TimeoutStalled
xxx.yyy.de - TimeoutIdle
xxx.yyy.de - DisplayLogin
xxx.yyy.de - DisplayFirstChdir
xxx.yyy.de - ListOptions
xxx.yyy.de - DenyFilter
xxx.yyy.de - UserID
xxx.yyy.de - UserName
xxx.yyy.de - GroupID
xxx.yyy.de - GroupName
xxx.yyy.de - Umask
xxx.yyy.de - DirUmask
xxx.yyy.de - AllowOverwrite
xxx.yyy.de - TransferLog
xxx.yyy.de - TLSEngine
xxx.yyy.de - DelayEngine
xxx.yyy.de - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock'
xxx.yyy.de - ProFTPD 1.3.0 (stable) (built Tue Nov 4 14:54:12 UTC 2008) standalone mode STARTUP

xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - FTP session requested from unknown class
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - connected - local : 62.75.252.190:21
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - connected - remote : 84.176.40.183:2736
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - FTP session opened.
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'USER ftp@kuschelecke.tv' to mod_rewrite
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'USER ftp@kuschelecke.tv' to mod_tls
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'USER ftp@kuschelecke.tv' to mod_core
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'USER ftp@kuschelecke.tv' to mod_core
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'USER ftp@kuschelecke.tv' to mod_delay
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'USER ftp@kuschelecke.tv' to mod_auth
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching CMD command 'USER ftp@kuschelecke.tv' to mod_auth
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - no supplemental groups found for user 'ftp@kuschelecke.tv'
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching POST_CMD command 'USER ftp@kuschelecke.tv' to mod_sql
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching POST_CMD command 'USER ftp@kuschelecke.tv' to mod_delay
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching LOG_CMD command 'USER ftp@kuschelecke.tv' to mod_sql
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching LOG_CMD command 'USER ftp@kuschelecke.tv' to mod_log
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_rewrite
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_tls
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_wrap
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_radius
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_sql
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching CMD command 'PASS (hidden)' to mod_auth
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - no supplemental groups found for user 'ftp@kuschelecke.tv'
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - no such user 'ftp@kuschelecke.tv'
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - USER ftp@kuschelecke.tv: no such user found from p54B028B7.dip0.t-ipconnect.de [84.176.40.183] to 62.75.252.190:21
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_sql
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_delay
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_sql
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
xxx.yyy.de (p54B028B7.dip0.t-ipconnect.de[84.176.40.183]) - FTP session closed.

I think that proftpd is not able to read the database where the ftp accounts are stored but i dont know how to fix that.

My /etc/proftpd/modules.conf looks like this:
Quote:#
# This file is used to manage DSO modules and features.
#

# This is the directory where DSO modules reside

ModulePath /usr/lib/proftpd

# Allow only user root to load and unload modules, but allow everyone
# to see which modules have been loaded

ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *

LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_sql.c
LoadModule mod_ldap.c
LoadModule mod_sql_mysql.c
LoadModule mod_sql_postgres.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
LoadModule mod_quotatab_ldap.c
LoadModule mod_quotatab_sql.c
LoadModule mod_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c

# keep this module the last one
LoadModule mod_ifsession.c

and my /etc/proftpd/proftpd.conf like this:
Quote:#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 on

ServerName "Debian"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"

DenyFilter \*.*/

# Port 21 is the standard FTP port.
Port 21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts 49152 65534

# 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 that the server normally runs at.
User proftpd
Group nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd off

# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile off

TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log

<IfModule mod_tls.c>
TLSEngine off
</IfModule>

<IfModule mod_quota.c>
QuotaEngine on
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=de...2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>

PS: proftpd-mysql is installed.

Do you guys have any idea what i can do ?

Thanks a lot

Stefan
03-07-2009 03:49 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: Upgrade to stable -> proftpd not working
Your proftpd.conf is NOT the one generated by ispcp! Take proftpd.conf from http://www.isp-control.net/ispcp/browser...an/proftpd and replace all {values} with proper one.
{HOST_NAME} -> host name
{DATABASE_NAME} -> usually ispcp
{DATABASE_HOST} -> usually localhost
{DATABASE_USER} -> sql user for connection to ispcp database usually vftp
{DATABASE_PASS} -> password
{FTPD_MIN_UID} -> 2000
{FTPD_MIN_GID} ->2000
And next time, do not open a different topic when you already have one on same theme!
(This post was last modified: 03-07-2009 05:56 AM by sci2tech.)
03-07-2009 05:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
chappy Offline
Junior Member
*

Posts: 17
Joined: Mar 2009
Reputation: 0
Post: #3
RE: Upgrade to stable -> proftpd not working
Hi thanks for your reply.
i did the changes your told me but i still see an error:
Quote: FTP session requested from unknown class
03-07-2009 07:17 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)