Okay, I have additional data to offer. First I moved to an internal
server so there are no firewalls to worry about, though that also
means I'm switching from an RHEL3 system to an RHEL4 system.
First AUTH TLS test using CuteFTP without CCC works just fine.
Second AUTH TLS test using CuteFTP wit CCC fails just like the others
do.
Here's what the client thinks is going on:
------------------------------------------------------------------------
*** CuteFTP 7.0 - build Jun 6 2005 ***
STATUS:> Getting listing ""...
STATUS:> Resolving host name relay1.stp.mrll.com...
STATUS:> Host name relay1.stp.mrll.com resolved: ip = 150.228.20.20.
STATUS:> Connecting to FTP server relay1.stp.mrll.com:21 (ip = 150.228.20.20)...
STATUS:> Socket connected. Waiting for welcome message...
220 FTP Server ready.
STATUS:> Connected. Authenticating...
COMMAND:>AUTH TLS
234 AUTH TLS successful
STATUS:> Establishing SSL session.
STATUS:> Initializing SSL module.
STATUS:> Connected. Exchanging encryption keys...
STATUS:> SSL Connect time: 621 ms.
STATUS:> SSL encrypted session established.
COMMAND:>PBSZ 0
200 PBSZ 0 successful
COMMAND:>USER lfahnoe
331 Password required for lfahnoe.
COMMAND:>PASS *****
230 User lfahnoe logged in.
STATUS:> Login successful.
COMMAND:>PWD
257 "/home/lfahnoe" is current directory.
STATUS:> Home directory: /home/lfahnoe
COMMAND:>FEAT
211-Features:
MDTM
REST STREAM
SIZE
AUTH TLS
PBSZ
PROT
211 End
STATUS:> This site supports features.
STATUS:> This site supports SIZE.
STATUS:> This site can resume broken downloads.
COMMAND:>REST 0
501 REST: Resuming transfers not allowed in ASCII mode
COMMAND:>PBSZ 0
200 PBSZ 0 successful
COMMAND:>PROT P
200 Protection set to Private
COMMAND:>CCC
200 Clearing control channel protection
COMMAND:>PASV
ERROR:> Timeout (60000 ms) occurred on receiving server response.
ERROR:> Failed to establish data socket.
------------------------------------------------------------------------
Here's the proftpd log:
------------------------------------------------------------------------
150.228.8.21 UNKNOWN nobody [26/Jul/2005:14:34:20 -0500] "AUTH TLS" - -
150.228.8.21 UNKNOWN nobody [26/Jul/2005:14:34:20 -0500] "PBSZ 0" 200 -
150.228.8.21 UNKNOWN nobody [26/Jul/2005:14:34:20 -0500] "USER lfahnoe" 331 -
150.228.8.21 UNKNOWN lfahnoe [26/Jul/2005:14:34:22 -0500] "PASS (hidden)" 230 -
150.228.8.21 UNKNOWN lfahnoe [26/Jul/2005:14:34:22 -0500] "PWD" 257 -
150.228.8.21 UNKNOWN lfahnoe [26/Jul/2005:14:34:22 -0500] "FEAT" 211 -
150.228.8.21 UNKNOWN lfahnoe [26/Jul/2005:14:34:23 -0500] "REST 0" 501 -
150.228.8.21 UNKNOWN lfahnoe [26/Jul/2005:14:34:23 -0500] "PBSZ 0" 200 -
150.228.8.21 UNKNOWN lfahnoe [26/Jul/2005:14:34:23 -0500] "PROT P" 200 -
150.228.8.21 UNKNOWN lfahnoe [26/Jul/2005:14:34:23 -0500] "CCC" - -
------------------------------------------------------------------------
The TLS log (with some editing to make it readable):
------------------------------------------------------------------------
14:34:19 mod_tls/2.1: using default OpenSSL verification locations (see $SSL_CERT_DIR)
14:34:19 mod_tls/2.1: TLS/TLS-C requested, starting TLS handshake
14:34:20 mod_tls/2.1: TLSv1/SSLv3 connection accepted, using cipher DHE-RSA-AES256-SHA (256 bits)
14:34:20 mod_tls/2.1: set RSA blinding on
14:34:23 mod_tls/2.1: Protection set to Private
14:34:23 mod_tls/2.1: received CCC, clearing control channel protection
14:34:23 mod_tls/2.1: SSL_shutdown() error:
(1) error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
------------------------------------------------------------------------
Note that the "SSL3_GET_RECORD:wrong version number" error only
happens when the client issues the CCC command.
The server side debug is set to level 9 (leading data stripped out to
make it more readable):
------------------------------------------------------------------------
Jul 26 14:34:19 - AuthOrder in effect, resetting auth module order
Jul 26 14:34:19 - ident lookup disabled
Jul 26 14:34:19 - connected - local : 150.228.20.20:21
Jul 26 14:34:19 - connected - remote : 150.228.8.21:2529
Jul 26 14:34:19 - FTP session opened.
Jul 26 14:34:19 - dispatching PRE_CMD command 'AUTH TLS' to mod_tls
Jul 26 14:34:19 - dispatching PRE_CMD command 'AUTH TLS' to mod_core
Jul 26 14:34:19 - dispatching PRE_CMD command 'AUTH TLS' to mod_core
Jul 26 14:34:19 - dispatching CMD command 'AUTH TLS' to mod_tls
Jul 26 14:34:20 - dispatching LOG_CMD command 'AUTH TLS' to mod_log
Jul 26 14:34:20 - dispatching PRE_CMD command 'PBSZ 0' to mod_tls
Jul 26 14:34:20 - dispatching PRE_CMD command 'PBSZ 0' to mod_core
Jul 26 14:34:20 - dispatching PRE_CMD command 'PBSZ 0' to mod_core
Jul 26 14:34:20 - dispatching CMD command 'PBSZ 0' to mod_tls
Jul 26 14:34:20 - dispatching LOG_CMD command 'PBSZ 0' to mod_log
Jul 26 14:34:20 - dispatching PRE_CMD command 'USER lfahnoe' to mod_tls
Jul 26 14:34:20 - dispatching PRE_CMD command 'USER lfahnoe' to mod_core
Jul 26 14:34:20 - dispatching PRE_CMD command 'USER lfahnoe' to mod_core
Jul 26 14:34:20 - dispatching PRE_CMD command 'USER lfahnoe' to mod_delay
Jul 26 14:34:20 - dispatching PRE_CMD command 'USER lfahnoe' to mod_auth
Jul 26 14:34:20 - dispatching auth request "endpwent" to module mod_auth_unix
Jul 26 14:34:20 - dispatching auth request "endgrent" to module mod_auth_unix
Jul 26 14:34:20 - dispatching CMD command 'USER lfahnoe' to mod_auth
Jul 26 14:34:20 - dispatching auth request "getgroups" to module mod_auth_unix
Jul 26 14:34:20 - dispatching auth request "requires_pass" to module mod_tls
Jul 26 14:34:20 - dispatching POST_CMD command 'USER lfahnoe' to mod_delay
Jul 26 14:34:20 - mod_delay/0.5: selecting median interval from 1 value
Jul 26 14:34:20 - dispatching LOG_CMD command 'USER lfahnoe' to mod_log
Jul 26 14:34:20 - dispatching PRE_CMD command 'PASS (hidden)' to mod_tls
Jul 26 14:34:20 - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
Jul 26 14:34:20 - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
Jul 26 14:34:20 - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
Jul 26 14:34:20 - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
Jul 26 14:34:20 - dispatching auth request "endpwent" to module mod_auth_unix
Jul 26 14:34:20 - dispatching auth request "endgrent" to module mod_auth_unix
Jul 26 14:34:20 - dispatching CMD command 'PASS (hidden)' to mod_auth
Jul 26 14:34:20 - dispatching auth request "getgroups" to module mod_auth_unix
Jul 26 14:34:20 - dispatching auth request "getpwnam" to module mod_auth_unix
Jul 26 14:34:20 - dispatching auth request "gid2name" to module mod_auth_unix
Jul 26 14:34:20 - dispatching auth request "auth" to module mod_auth_pam
Jul 26 14:34:20 - ROOT PRIVS at mod_auth_pam.c:262
Jul 26 14:34:20 - RELINQUISH PRIVS at mod_auth_pam.c:421
Jul 26 14:34:20 - user lfahnoe authenticated by mod_auth_pam.c
Jul 26 14:34:20 - dispatching auth request "setgrent" to module mod_auth_unix
Jul 26 14:34:20 - ROOT PRIVS at mod_auth.c:447
Jul 26 14:34:20 - RELINQUISH PRIVS at mod_auth.c:449
Jul 26 14:34:20 - USER PRIVS 501 at mod_auth.c:1026
Jul 26 14:34:20 - RELINQUISH PRIVS at mod_auth.c:1028
Jul 26 14:34:20 -
Jul 26 14:34:20 - Config for corpftp.icrp.mrll.com:
Jul 26 14:34:20 - AccessGrantMsg
Jul 26 14:34:21 - DefaultServer
Jul 26 14:34:21 - ServerIdent
Jul 26 14:34:21 - DebugLevel
Jul 26 14:34:21 - AuthOrder
Jul 26 14:34:21 - IdentLookups
Jul 26 14:34:21 - ListOptions
Jul 26 14:34:21 - AllowRetrieveRestart
Jul 26 14:34:21 - AllowStoreRestart
Jul 26 14:34:21 - UserID
Jul 26 14:34:21 - UserName
Jul 26 14:34:21 - GroupID
Jul 26 14:34:21 - GroupName
Jul 26 14:34:21 - TransferLog
Jul 26 14:34:21 - TLSEngine
Jul 26 14:34:21 - TLSRequired
Jul 26 14:34:21 - TLSRSACertificateFile
Jul 26 14:34:21 - TLSRSACertificateKeyFile
Jul 26 14:34:21 - TLSOptions
Jul 26 14:34:21 - TLSVerifyClient
Jul 26 14:34:21 - TLSRenegotiate
Jul 26 14:34:21 - TLSLog
Jul 26 14:34:21 - Limit
Jul 26 14:34:21 - AllowAll
Jul 26 14:34:21 - ExtendedLog
Jul 26 14:34:21 - DenyFilter
Jul 26 14:34:21 - IdentLookups
Jul 26 14:34:21 - AllowOverwrite
Jul 26 14:34:21 - Umask
Jul 26 14:34:21 - TimesGMT
Jul 26 14:34:21 - TimeoutLogin
Jul 26 14:34:21 - TimeoutIdle
Jul 26 14:34:21 - TimeoutNoTransfer
Jul 26 14:34:21 - TimeoutStalled
Jul 26 14:34:21 - CURRENT-CLIENTS
Jul 26 14:34:21 - USER
Jul 26 14:34:21 - ROOT PRIVS at mod_auth.c:1097
Jul 26 14:34:21 - opening TransferLog '/var/log/xferlog'
Jul 26 14:34:21 - RELINQUISH PRIVS at mod_auth.c:1126
Jul 26 14:34:21 - ROOT PRIVS at mod_auth.c:1169
Jul 26 14:34:21 - SETUP PRIVS at mod_auth.c:1176
Jul 26 14:34:21 - FS: using system chdir()
Jul 26 14:34:21 - in dir_check_full(): path = '/home/lfahnoe', fullpath = '/home/lfahnoe'.
Jul 26 14:34:22 - FS: using system stat()
Jul 26 14:34:22 - dispatching POST_CMD command 'PASS (hidden)' to mod_cap
Jul 26 14:34:22 - mod_cap/1.0: capabilities '= cap_net_bind_service+ep'
Jul 26 14:34:22 - dispatching POST_CMD command 'PASS (hidden)' to mod_tls
Jul 26 14:34:22 - dispatching POST_CMD command 'PASS (hidden)' to mod_readme
Jul 26 14:34:22 - dispatching POST_CMD command 'PASS (hidden)' to mod_delay
Jul 26 14:34:22 - mod_delay/0.5: selecting median interval from 1 value
Jul 26 14:34:22 - dispatching POST_CMD command 'PASS (hidden)' to mod_log
Jul 26 14:34:22 - dispatching POST_CMD command 'PASS (hidden)' to mod_ls
Jul 26 14:34:22 - dispatching POST_CMD command 'PASS (hidden)' to mod_auth
Jul 26 14:34:22 - ROOT PRIVS: ID switching disabled
Jul 26 14:34:22 - dispatching LOG_CMD command 'PASS (hidden)' to mod_log
Jul 26 14:34:22 - dispatching PRE_CMD command 'PWD' to mod_tls
Jul 26 14:34:22 - dispatching PRE_CMD command 'PWD' to mod_core
Jul 26 14:34:22 - dispatching PRE_CMD command 'PWD' to mod_core
Jul 26 14:34:22 - dispatching CMD command 'PWD' to mod_core
Jul 26 14:34:22 - in dir_check_full(): path = '/home/lfahnoe', fullpath = '/home/lfahnoe'.
Jul 26 14:34:22 - FS: using system stat()
Jul 26 14:34:22 - dispatching LOG_CMD command 'PWD' to mod_log
Jul 26 14:34:22 - dispatching PRE_CMD command 'FEAT' to mod_tls
Jul 26 14:34:22 - dispatching PRE_CMD command 'FEAT' to mod_core
Jul 26 14:34:22 - dispatching PRE_CMD command 'FEAT' to mod_core
Jul 26 14:34:22 - dispatching CMD command 'FEAT' to mod_core
Jul 26 14:34:22 - dispatching LOG_CMD command 'FEAT' to mod_log
Jul 26 14:34:23 - dispatching PRE_CMD command 'REST 0' to mod_tls
Jul 26 14:34:23 - dispatching PRE_CMD command 'REST 0' to mod_core
Jul 26 14:34:23 - dispatching PRE_CMD command 'REST 0' to mod_core
Jul 26 14:34:23 - dispatching CMD command 'REST 0' to mod_xfer
Jul 26 14:34:23 - REST not allowed in ASCII mode
Jul 26 14:34:23 - dispatching LOG_CMD_ERR command 'REST 0' to mod_log
Jul 26 14:34:23 - dispatching PRE_CMD command 'PBSZ 0' to mod_tls
Jul 26 14:34:23 - dispatching PRE_CMD command 'PBSZ 0' to mod_core
Jul 26 14:34:23 - dispatching PRE_CMD command 'PBSZ 0' to mod_core
Jul 26 14:34:23 - dispatching CMD command 'PBSZ 0' to mod_tls
Jul 26 14:34:23 - dispatching LOG_CMD command 'PBSZ 0' to mod_log
Jul 26 14:34:23 - dispatching PRE_CMD command 'PROT P' to mod_tls
Jul 26 14:34:23 - dispatching PRE_CMD command 'PROT P' to mod_core
Jul 26 14:34:23 - dispatching PRE_CMD command 'PROT P' to mod_core
Jul 26 14:34:23 - dispatching CMD command 'PROT P' to mod_tls
Jul 26 14:34:23 - dispatching POST_CMD command 'PROT P' to mod_xfer
Jul 26 14:34:23 - dispatching LOG_CMD command 'PROT P' to mod_log
Jul 26 14:34:23 - dispatching PRE_CMD command 'CCC' to mod_tls
Jul 26 14:34:23 - dispatching PRE_CMD command 'CCC' to mod_core
Jul 26 14:34:23 - dispatching PRE_CMD command 'CCC' to mod_core
Jul 26 14:34:23 - dispatching CMD command 'CCC' to mod_tls
Jul 26 14:34:23 - in dir_check_full(): path = '/home/lfahnoe', fullpath = '/home/lfahnoe'.
Jul 26 14:34:23 - FS: using system stat()
Jul 26 14:34:23 - mod_tls/2.1: SSL_shutdown() error: (unknown)
Jul 26 14:34:23 - dispatching LOG_CMD command 'CCC' to mod_log
Jul 26 14:35:24 - mod_tls/2.1: scrubbing all passphrases from memory
Jul 26 14:35:24 - dispatching auth request "endpwent" to module mod_auth_unix
Jul 26 14:35:24 - dispatching auth request "endgrent" to module mod_auth_unix
Jul 26 14:35:24 - ROOT PRIVS: ID switching disabled
Jul 26 14:35:24 - ROOT PRIVS: ID switching disabled
Jul 26 14:35:24 - FTP session closed.
------------------------------------------------------------------------
--Larry
On Tue, Jul 26, 2005 at 01:31:31PM -0500, Larry Fahnoe wrote:
> On Tue, Jul 26, 2005 at 11:39:36AM -0700, TJ Saunders wrote:
> >
> > > proftpd-1.3.0rc2
> >
> > Is this a regression, or do you see the same issues with proftpd-1.3.0rc1?
>
> I was unable to get proftpd-1.3.0rc1 to work either, but have focused
> more effort on testing rc2 than I did with rc1.
>
> > > Following are some examples from the logs that show some of the odd
> > > behavior:
> >
> > What does server debugging output show? Note that server debugging
> > output is separate from the ExtendedLog and TLSLog excerpts provided.
>
> I have not (yet) enabled server debugging, what level would you suggest?
>
> > > Jul 26 09:58:20 mod_tls/2.1[32741]: received CCC, clearing control channel protection
> > > Jul 26 09:58:20 mod_tls/2.1[32741]: SSL_shutdown() error:
> > > (1) error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
> >
> > The above error, from OpenSSL, needs to diagnosed, as I suspect it is
> > indicating a problem.
>
> I see this error somewhat consistently with the Windows clients, but I
> don't know what I should be looking for (I'm not an SSL guru). Any
> suggestions on what to look for or debugging strategies?
>
> > TJ
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > But let there be spaces in your togetherness.
> >
> > -Kahlil Gibran
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> > from IBM. Find simple to follow Roadmaps, straightforward articles,
> > informative Webcasts and more! Get everything you need to get up to
> > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> > _______________________________________________
> > ProFTPD Developers List
> > <proftpd-devel@...>
> > https://lists.sourceforge.net/lists/listinfo/proftp-devel
>
--
Larry Fahnoe, Fahnoe Technology Consulting, fahnoe@...
952/925-0744 Minneapolis, Minnesota http://www.FahnoeTech.com
|