Passive mode FTP file download hangs from specific machine

Posted by chiptuned on Super User See other posts from Super User or by chiptuned
Published on 2014-08-24T09:31:56Z Indexed on 2014/08/24 10:22 UTC
Read the original article Hit count: 166

Filed under:
|
|

I have a server which is an AWS instance that just cannot download files from a specific FTP server. I can connect to the FTP server fine and run some commands, but when I request a file it just hangs. Here is the debug output of the base linux ftp client after login:

---> SYST
215 UNIX Type: Apache FtpServer 
Remote system type is UNIX.
ftp> get outgoing/catalog.gz catalog.gz
local: catalog.gz remote: outgoing/catalog.gz
---> PASV
227 Entering Passive Mode (64,156,167,125,135,191)
---> RETR outgoing/catalog.gz
150 File status okay; about to open data connection.

Thats it. Then it just sits there and nothing transfers. I have verified that a data connection is made but the client gets no data.

?  ss -nt dst 64.156.167.125
State      Recv-Q Send-Q        Local Address:Port          Peer Address:Port 
ESTAB      0      0            10.185.147.150:41190       64.156.167.125:21    
ESTAB      0      0            10.185.147.150:48871       64.156.167.125:48557 

The FTP server is not in my control and downloads from other FTP servers in passive mode have worked. Active mode does not work as the system is behind a firewall. Every FTP client I've tried has the same problem. The download works from other systems, even from other AWS instances I have with the same Security Group. Not necessarily the same distro or config though.

I understand it may be some issue on the server side, but I want to know what it is about my particular machine where the transfer hangs and where on every other machine I can get my hands on, it works. Please let me know what the culprit on the client side could be or ideas on what else to look at.

© Super User or respective owner

Related posts about linux

Related posts about ftp