TC7 tries to use both PASV and PORT while in FTPS mode

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
SirZooro
Junior Member
Junior Member
Posts: 8
Joined: 2006-11-03, 09:45 UTC

TC7 tries to use both PASV and PORT while in FTPS mode

Post by *SirZooro »

Hi,
TC7 sends both PASV and PORT. For some reason active FTPS connections don't work for me, therefore LIST command times out. I have changed @ to AT in cert path below.

Code: Select all

220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 11 of 50 allowed.
220-Local time is now 12:48. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
AUTH TLS
234 AUTH TLS OK.
Cert subject: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=w21.webd.pl/emailAddress=sslATcpanel.net
Cert issuer: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=w21.webd.pl/emailAddress=sslATcpanel.net
USER/PASS here (forum refuses to post it, even changed to stars?)
230 OK. Current restricted directory is /
SYST
215 UNIX Type: L8
FEAT
211-Extensions supported:
 EPRT
 IDLE
 MDTM
 SIZE
 REST STREAM
 MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
 MLSD
 ESTP
 PASV
 EPSV
 SPSV
 ESTA
 AUTH TLS
 PBSZ
 PROT
211 End.
PBSZ 0
200 PBSZ=0
PROT P
534 Fallback to [C]
CWD /
250 OK. Current directory is /
Connect ok!
PWD
257 "/" is your current location
Pobierz katalog
TYPE A
200 TYPE is now ASCII
PASV
227 Entering Passive Mode (83,149,76,118,64,182)
PORT 194,150,98,112,9,139
200 PORT command successful
LIST
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Total Commander switches to PORT mode when passive mode fails. How much time passes between the PASV and PORT command?

Btw, PORT mode does not work with SSL/TLS when going through a NAT proxy, because the NAT cannot see the port addresses which it needs to translate.
Author of Total Commander
https://www.ghisler.com
SirZooro
Junior Member
Junior Member
Posts: 8
Joined: 2006-11-03, 09:45 UTC

Post by *SirZooro »

ghisler(Author) wrote:Total Commander switches to PORT mode when passive mode fails. How much time passes between the PASV and PORT command?
About 20 seconds.
ghisler(Author) wrote:Total Commander switches to PORT mode when Btw, PORT mode does not work with SSL/TLS when going through a NAT proxy, because the NAT cannot see the port addresses which it needs to translate.
I have public IP. However I suspect that my ISP filters some of incoming connections - I sent him an email to get more details on this.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sounds like a timeout to me - TC then tries port mode.
Author of Total Commander
https://www.ghisler.com
Post Reply