carribeiro / vdeli

Video Delivery Network
2 stars 0 forks source link

FTP server is only accepting passive connections when accessed remotely #40

Closed carribeiro closed 13 years ago

carribeiro commented 13 years ago

When tested on the local computer, the ftpserver accepts any kind of ftp connection, and uses "active" data connections. However, when used in a remote server (on another network, or hosted on a datacenter) the FTP server "locks" even on basic operations such as a dir/list command.

In the same setup, if the FTP server is used with passive connections, everything works fine.

POSSIBLE SOLUTIONS

1) Assume that the server will work only in passive mode, and document this behavior. 2) Check other FTP servers that seem to accept active connections (for example, the ftp server from Edgecast). 3) Use the FXP protocol (we need to make sure that this is the correct behavior). 4) Understand the ftpserver and come up with another solution :-)

tschacara commented 13 years ago

Analyzing the behavior of the connection attempts detected in the logs of the connections ftpserver unsuccessful using a range of ports below 60,000, and successful connections are between 60,000 to 61,000 range.

POSSIBLE SOLUTIONS

1) Find a way in which all clients access the FTP server using ports between 60,000 and 61,000

tschacara commented 13 years ago

Analyzing the issue and comparing it with other ftp servers, the best way to proceed and let the ftp client to negotiate a port available with the server using passive mode. For further explanation of how to access the project documentation on https://github.com/carribeiro/vdeli/wiki/FTP-Client-Behind-a-Firewall-or-NAT