PDA

View Full Version : Server ftp con filezilla e xp Inaccessibile da remoto


giannismart
21-04-2010, 13:07
salve ragazzi ho un serverino con modem usb.

quindi ha l'ip pubblico, č collegato alla rete domestica

da locale rieso ad entrare in ftp, mentre da remoto no, se mi ci collego con un client ftp semopre come filezilla mi autentica col nome e password stabiliti ma non riesce a leggere il contenuto della cartella.

infatti mi da il seguente errore:

Comando: MLSD
Risposta: 425 Can't open data connection.
Errore: Non č stato possibile leggere il contenuto della cartella
Risposta: 421 Connection timed out.
Errore: Disconnesso dal server: ECONNABORTED - Connection aborted

che cossa vorrā dire mai? :)

dapilori
21-04-2010, 14:33
Allora, il problema di FTP č che usa DUE connessioni: una di "comando" per autenticazione e comandi (porta TCP 21) e una di "dati" usata effettivamente per il trasferimento dati: http://it.wikipedia.org/wiki/File_Transfer_Protocol

Questo causa GROSSI problemi quando si deve configurare un NAT/PAT oppure un firewall, quindi presumo che il problema sia nella configurazione di un eventuale firewall e/o del modem usb.

!fazz
21-04-2010, 16:05
FileZilla Server FAQ

1. I've just installed the server and after starting the interface, it asks for a server address.
Despite administrating the server on the local machine, the interface can also be used to administrate remote servers. But you will most likely want to administrate your local server. In this case enter 127.0.0.1 as server address. For the server port, you have to enter the same port number you did specify during installation for the admin port. (default: 14147)
2. I'm behind a firewall and nobody can connect to my server or transfer files / directory listings
You have to configure your firewall to allow incoming connections on the ftp port (default: 21), as well as allowing outgoing connections from the server. In FTP Active Mode, FileZilla Server tries to use a port one less than the ftp port for outgoing connections. If that fails it tries to use a port one larger than the ftp port and after that it requests a port from windows. It may be best to allow all outgoing connections from the server. Further you have to allow a port range for incoming connections for passive mode transfers. You can specify this port range on the "passive mode settings" page in the settings dialog in the server interface. In most cases, a range like 5000-5100 is sufficient. With certain firewalls, it may be possible that FileZilla can't determine the external IP address. In this case you have to enter the IP address (or your host name) on the passive mode page in the settings dialog. In case you've a dynamic IP (most dial-up users), you can also choose to retrieve the ip address from a website.
3. I'm behind a router and nobody can connect to my server or transfer files / directory listings
You have to configure your router to forward the ftp port (default: 21) to the server machine. Further you have to forward a port range for passive mode transfers. You can specify this port range on the "passive mode settings" page in the settings dialog in the server interface. In most cases, a range like 5000-5100 is sufficient. Most likely, FileZilla can't determine the external IP address if behind a router. In this case you have to enter the IP address (or your host name) on the passive mode page in the settings dialog. In case you've a dynamic IP (most dial-up users), you can also choose to retrieve the ip address from a website.
4. I'm behind a router and a firewall and nobody can connect to my server or transfer files / directory listings
Just follow both steps 2 and 3 in this case.
5. How can I enable anonymous logins?
Just create an account with the name anonymous and make sure the password box isn't checked on that account.
6. How can I test that my server can be reached from the internet?
It's not possible to check the accessibility of the server by connecting from inside the local network (or even localhost) by entering the external IP in a client. Reason is that most firewalls and/or routers only forward ports for requests coming from outside the internal network. So you would have to connect to your server from an external machine. You can test the accessibility of your server using the free service from http://ftptest.net/.