Page 1 of 1

Reply: 501 Couldn't open the directory

Posted: 2022-06-26 00:41
by msrbelfast
Hi,

I'm trying to set up an FTP server from my home computer that I can access remotely. I've got this far, and now I'm stuck! I'm using Win 10, Apple Airport Express into Virgin Media Hub 3 (on Modem mode).

Any help greatly appreciated.

Many thanks,

Matt

---

Test log

Warning: Allowing fallback to plaintext FTP is insecure. You should use explicit FTP over TLS.

Warning: Selected port (2121) is not the default port (21) of the selected protocol.

Status: Resolving address of

Status: Connecting to

Warning: The entered address does not resolve to an IPv6 address.

Status: Connected, waiting for welcome message...

Reply: 220-FileZilla Server 1.4.1

Reply: 220 Please visit https://filezilla-project.org/

Command: CLNT https://ftptest.net on behalf of

Reply: 200 Don't care.

Command: AUTH TLS

Reply: 234 Using authentication type TLS.

Status: Performing TLS handshake...

Status: TLS handshake successful, verifying certificate...

Status: Received 1 certificates from server.

Status: cert[0]: subject='CN=filezilla-server self signed certificate' issuer='CN=filezilla-server self signed certificate'

Command: USER XXX XXX

Reply: 331 Please, specify the password.

Command: PASS ***********************

Reply: 230 Login successful.

Command: SYST

Reply: 215 UNIX emulated by FileZilla.

Command: FEAT

Reply: 211-Features:

Reply: MDTM

Reply: REST STREAM

Reply: SIZE

Reply: MLST type*;size*;modify*;perm*;

Reply: MLSD

Reply: AUTH SSL

Reply: AUTH TLS

Reply: PROT

Reply: PBSZ

Reply: UTF8

Reply: TVFS

Reply: EPSV

Reply: EPRT

Reply: MFMT

Reply: 211 End

Command: PBSZ 0

Reply: 200 PBSZ=0

Command: PROT P

Reply: 200 Protection level set to P

Command: PWD

Reply: 257 "/" is current directory.

Status: Current path is /

Command: TYPE I

Reply: 200 Type set to I

Command: PASV

Reply: 227 Entering Passive Mode (,192,245)

Command: MLSD

Status: Data connection established, performing TLS handshake...

Status: TLS handshake successful, verifying certificate...

Status: Received 1 certificates from server.

Status: cert[0]: subject='CN=filezilla-server self signed certificate' issuer='CN=filezilla-server self signed certificate'

Status: TLS session of transfer connection has been resumed.

Reply: 501 Couldn't open the directory

Error: Listing failed

Re: Reply: 501 Couldn't open the directory

Posted: 2022-06-26 10:33
by AurelM
Make sure the port range configured in FileZilla Server for the Passive mode is forwarded correctly on the router. Here are two sites with instructions for Apple AirPort routers on port forwarding: https://discussions.apple.com/docs/DOC-3415 https://portforward.com/apple/airport-extreme/ .
If the router doesn't let you configure a range, you'll have to make multiple single port forwardings for the entire range, but in this case just use a range of 10 ports for testing and then adjust for your use case.

Re: Reply: 501 Couldn't open the directory

Posted: 2022-06-26 12:24
by boco
Make sure the account FileZilla Server runs under (SYSTEM by default) has full access to the physical directories you define as resources in the configuration. Also make sure the Controlled Folder Access (a Windows feature) doesn't block anything related to FileZilla Server and the resources.