Eu configurei um servidor FTP no IIS. O intervalo de portas do canal de dados é definido como 5000-6000 e o "Endereço IP externo do firewall" é definido como o endereço IP público correto. No firewall do Azure para esta VM, as portas 20,21 e 5000-6000 estão todas abertas. Desativei temporariamente o firewall na VM do Windows enquanto tento fazer isso funcionar.
Se eu conectar do FileZilla sem usar SSL, tudo estará bem. Se eu me conectar com SSL, acontecerá o seguinte (alterei um nome de usuário e endereço IP para xx)
Status: Connecting to x.x.x.x:21...
Status: Connection established, waiting for welcome message...
Response: 220 Microsoft FTP Service
Command: AUTH TLS
Response: 234 AUTH command ok. Expecting TLS Negotiation.
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Command: USER xx
Response: 331 Password required
Command: PASS ************
Response: 230 User logged in.
Command: OPTS UTF8 ON
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Command: PBSZ 0
Response: 200 PBSZ command successful.
Command: PROT P
Response: 200 PROT command successful.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (x,x,x,x,237,114).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Se eu me conectar ao servidor sem usar SSL, esse problema não existe, os arquivos são listados e posso fazer upload de arquivos e tudo funciona bem.