-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PASV TLS TimeoutError - connectionHandler never called #192
Comments
@danielmahon I was having this same issue on non-TLS while using the cli approach. It seams that the [url] cli argument isn't being passed to the PASV config. I was able to bypass the issue by instantiating FtpSrv through code rather than the cli. Also ensuring that the root directory is a valid path (if on windows, using a forward slash (/) as a path separator has generally worked better too). For PASV I've found you can't use 0.0.0.0 either, and you need to specify a routable address (i.e. external ip). |
Passive connections cannot be made without specifying the It looks like the docs were incorrect in saying that |
With the CLI you can specify the passive hostname using |
@danielmahon Are you using implicit ( |
Closed because this seems stale, and it was most likely a docs issue. |
This appears to be the same issue that my comment on #96 refers to. For me LIST is working but RETR and STOR never have this connection. Using Explicit TLS. My comment from the other issue: I'm seeing this issue on STOR and RETR with the latest code and passive mode. Strangely enough LIST is working fine. If I copy the logic from the registered commands of LIST into RETR, without TLS on I get a text file with the directory listing as expected and with TLS I see the timeout. List has PASV before it, makes a new listening connection, has TLS succeed, and sends the directory list across. STOR and RETR have waitForConnection time out in passive.js. With TLS off, no issue. I've tried various node versions: 8,x, 12.x, 15.x with the same result. Wireshark show the client making a connection successfully but TLS negotiation doesn't happen, and eventually waitForConnection times out. |
When using TLS and PASV, the
LIST
command fails and times out onwaitForConnection
. It seems as though theconnectionHandler
fortls.createServer()
is never called. Non-TLS works fine andconnectionHandler
fornet.createServer()
is called. Not sure why but this prevents me from connecting to ftp-srv with TLS. Thoughts?https://github.com/trs/ftp-srv/blob/0b9167e1e44f41306925879a234f3d914a8b13f7/src/connector/passive.js#L63
https://github.com/trs/ftp-srv/blob/0b9167e1e44f41306925879a234f3d914a8b13f7/src/connector/passive.js#L38
Error:
The text was updated successfully, but these errors were encountered: