In need of help with FTP connection problems

Discussion in 'Server Operation' started by FXT, Jan 18, 2008.

  1. FXT

    FXT New Member

    I have set up an Ubuntu Server with ISPConfig following various Howtos and hints from this forum. The server is up and running, and ISPConfig reports no problems for more than three days now, serving the default pages on the domains pointing to the machine. So far, so good. Now I want to start to actually put content online, for that purpose I've created a reseller, a client and a website for that client. That website's default index.html is online, so that is fine.

    The server is a VM with a fixed IP, and my DSL-router is forwarding both port 20 and 21 to the VM. There is no firewall running on the server VM. (ISPConfig shows it as off in Management). If I connect to the local IP using FileZilla with the login credentials of the user created for the website (web3_blahblah, this is the admin user for the website), I can get to the directory listing and even browse through the various directories. I can not, however upload or download a single file.
    All I end up with are files with correct filename and 0 bytes of size on the server. Downloads result in nothing at all. FileZilla will ask me whether to overwrite or replace the existing 0 byte file when I try to copy files again, but the upload fails again immediately.

    Trying to connect from the internet (from a remote windows server i connect to via RDP, also using FileZilla) I don't even get to the directory listing.

    I have not touched any settings for ProFTPd. My installation procedure was as follows:
    Code:
    apt-get install proftpd proftpd-common ucf
    
    I chose to run proftpd to run as standalone.

    Then I added the two following lines to proftpd.conf
    Code:
    IdentLookups off
    ServerIdent on "FTP Server ready."
    
    Where do I go from here? What settings can I check? Any help would be greatly appreciated!
     
  2. FXT

    FXT New Member

    Some additional information:

    I've now added the following line to /etc/proftpd.conf:

    Code:
    PassivePorts 34000 34100
    
    and restarted proftpd.conf.

    I have forwarded the above port range (TCP only, no UDP) to the VM's local IP in my router's settings.
    Then I specifically set the transfer settings in FIleZilla to passive mode.
    Still no go, the symptoms haven't changed at all.

    Any hints?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Have you tried active mode as well?
     
  4. FXT

    FXT New Member

    I just forced FileZilla into active mode:

    Code:
    Status:	Verbinden mit xxxx.dyndns.org...
    Status:	Verbunden mit xxxx.dyndns.org. Warten auf Willkommens-Meldung...
    Antwort:	220 ProFTPD 1.2.10 Server (Debian) [192.168.1.222]
    Befehl:	USER web3_xxxx
    Antwort:	331 Password required for web3_xxxx.
    Befehl:	PASS *************
    Antwort:	230 User web3_xxxx logged in.
    Befehl:	SYST
    Antwort:	215 UNIX Type: L8
    Befehl:	FEAT
    Antwort:	211-Features:
    Antwort:	211-MDTM
    Antwort:	211-REST STREAM
    Antwort:	211-SIZE
    Antwort:	211 End
    Status:	Verbindung hergestellt
    Status:	Verzeichnisinhalt wird abgeholt...
    Befehl:	PWD
    Antwort:	257 "/" is current directory.
    Befehl:	TYPE A
    Antwort:	200 Type set to A
    Fehler:	Failed to create listen socket
    Fehler:	Dateiliste konnte nicht empfangen werden
    Befehl:	TYPE I
    Antwort:	200 Type set to I
    Befehl:	PWD
    Antwort:	257 "/" is current directory.
    Befehl:	TYPE A
    Antwort:	200 Type set to A
    Befehl:	TYPE I
    Antwort:	200 Type set to I
    Befehl:	TYPE A
    Antwort:	200 Type set to A
    Befehl:	TYPE A
    Antwort:	200 Type set to A
    Befehl:	TYPE I
    Antwort:	200 Type set to I
    Befehl:	TYPE I
    
    
    Still no go...
     
  5. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in your log files?
    What's the output of
    Code:
    netstat -tap
    ?
     
  6. FXT

    FXT New Member

    Sorry for the late reply, but this is the output of netstat -tap:

    Code:
    root@myserver:/src/snort# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 localhost.localdo:mysql *:*                     LISTEN     3840/mysqld
    tcp        0      0 *:81                    *:*                     LISTEN     4175/ispconfig_http
    tcp        0      0 *:ftp                   *:*                     LISTEN     31842/proftpd: (acc
    tcp        0      0 myserver.dyndns.:domain *:*                     LISTEN     9045/named
    tcp        0      0 localhost.locald:domain *:*                     LISTEN     9045/named
    tcp        0      0 *:smtp                  *:*                     LISTEN     31927/master
    tcp        0      0 localhost.localdoma:953 *:*                     LISTEN     9045/named
    tcp6       0      0 *:imaps                 *:*                     LISTEN     3714/couriertcpd
    tcp6       0      0 *:pop3s                 *:*                     LISTEN     3749/couriertcpd
    tcp6       0      0 *:pop3                  *:*                     LISTEN     3729/couriertcpd
    tcp6       0      0 *:imap2                 *:*                     LISTEN     3694/couriertcpd
    tcp6       0      0 *:www                   *:*                     LISTEN     1673/apache2
    tcp6       0      0 *:ssh                   *:*                     LISTEN     4014/sshd
    tcp6       0      0 *:smtp                  *:*                     LISTEN     31927/master
    tcp6       0      0 ip6-localhost:953       *:*                     LISTEN     9045/named
    tcp6       0      0 *:https                 *:*                     LISTEN     1673/apache2
    tcp6       0    148 myserver.dyndns.org:ssh fxbox:4309              ESTABLISHED4484/sshd: xxxuser
    root@myserver:/src/snort#
    
    What logfiles would I best look into?
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Please check all the logs in the /var/log directory.
     

Share This Page