Trying to download a file to a device over FTPS. I am using curl (7.88.1) as the client on the remote machine and pyftpdlib (1.5.7) to implement the FTP server on the local machine. While attempting to download my_file.txt, curl outputs: curl: (13) Bad PASV/EPSV response: 200.
In Wireshark I can see that when the client attempts to establish a TLS connection on the passive port, the pyftpdlib server responds to the "client hello" with a RST, ACK packet.
I have configured a Filezilla FTP server to 'Require explicit FTP over TLS' using the same certificate, key and passive port (1280), and using the same Curl command works without any issue.
The Curl command I am running on the remote is: curl --ssl-reqd ftp://xxx.xxx.4.233:2128/myfile.txt -o my_file.txt -k -v and the basic implementation of the server is below (I have also attached verbose logs for the pyftpdlib server and curl):
Trying to download a file to a device over FTPS. I am using curl (7.88.1) as the client on the remote machine and pyftpdlib (1.5.7) to implement the FTP server on the local machine. While attempting to download my_file.txt, curl outputs: curl: (13) Bad PASV/EPSV response: 200.
In Wireshark I can see that when the client attempts to establish a TLS connection on the passive port, the pyftpdlib server responds to the "client hello" with a RST, ACK packet.
I have configured a Filezilla FTP server to 'Require explicit FTP over TLS' using the same certificate, key and passive port (1280), and using the same Curl command works without any issue.
The Curl command I am running on the remote is:
curl --ssl-reqd ftp://xxx.xxx.4.233:2128/myfile.txt -o my_file.txt -k -v
and the basic implementation of the server is below (I have also attached verbose logs for the pyftpdlib server and curl):curl_log.txt pyftpdlib_log.txt