ISPConfig 3.2 - FTP error

Discussion in 'Installation/Configuration' started by jhonatandiazp, Dec 2, 2021.

  1. jhonatandiazp

    jhonatandiazp Member HowtoForge Supporter

    This is the log of the FTP client after I change the directory to /
    Code:
    < 2021-12-02 21:24:09.235 230 OK. Current restricted directory is /
    > 2021-12-02 21:24:09.235 SYST
    < 2021-12-02 21:24:09.243 215 UNIX Type: L8
    > 2021-12-02 21:24:09.243 FEAT
    < 2021-12-02 21:24:09.251 211-Extensions supported:
    < 2021-12-02 21:24:09.251  UTF8
    < 2021-12-02 21:24:09.251  EPRT
    < 2021-12-02 21:24:09.251  IDLE
    < 2021-12-02 21:24:09.251  MDTM
    < 2021-12-02 21:24:09.251  SIZE
    < 2021-12-02 21:24:09.251  MFMT
    < 2021-12-02 21:24:09.251  REST STREAM
    < 2021-12-02 21:24:09.251  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
    < 2021-12-02 21:24:09.251  MLSD
    < 2021-12-02 21:24:09.251  PRET
    < 2021-12-02 21:24:09.251  AUTH TLS
    < 2021-12-02 21:24:09.251  PBSZ
    < 2021-12-02 21:24:09.251  PROT
    < 2021-12-02 21:24:09.251  ESTA
    < 2021-12-02 21:24:09.251  PASV
    < 2021-12-02 21:24:09.251  EPSV
    < 2021-12-02 21:24:09.251  SPSV
    < 2021-12-02 21:24:09.251  ESTP
    < 2021-12-02 21:24:09.251 211 End.
    > 2021-12-02 21:24:09.251 OPTS UTF8 ON
    < 2021-12-02 21:24:09.262 504 Unknown command
    . 2021-12-02 21:24:09.278 Connected
    . 2021-12-02 21:24:09.279 Doing startup conversation with host.
    > 2021-12-02 21:24:09.308 PWD
    < 2021-12-02 21:24:09.314 257 "/" is your current location
    . 2021-12-02 21:24:09.314 Changing directory to "/".
    > 2021-12-02 21:24:09.314 CWD /
    < 2021-12-02 21:24:09.323 250 OK. Current directory is /
    . 2021-12-02 21:24:09.323 Getting current directory name.
    > 2021-12-02 21:24:09.323 PWD
    < 2021-12-02 21:24:09.330 257 "/" is your current location
    . 2021-12-02 21:24:09.396 Retrieving directory listing...
    > 2021-12-02 21:24:09.396 TYPE A
    < 2021-12-02 21:24:09.403 200 TYPE is now ASCII
    > 2021-12-02 21:24:09.403 PASV
    < 2021-12-02 21:24:09.410 227 Entering Passive Mode (IP,206,59)
    > 2021-12-02 21:24:09.411 MLSD
    . 2021-12-02 21:24:09.411 Connecting to IP:52795 ...
     
  2. jhonatandiazp

    jhonatandiazp Member HowtoForge Supporter

    Hello, Sorry for the delay. I am still facing the FTP problem. What I am facing. ISPConfig Multiserver setup. Created client an website. Create a test FTP account. I tried to ftp to the server witthout luck. I modified the pure-ftpd.conf (added passive port range) from 40110 to 40210. Tried to connect, ftp client (filezilla or winscp) cannot listed the directory. I checked logs and I see that is trying to connect to server using a different random ports that the one that I set in the pure-ftpd. It looks that the server is not responding with the correct ports to the client for the data connection. Any help please. I tried in three different web servers (two in Debian 11 and on in Debian 10.9) same result.
     
  3. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

  4. jhonatandiazp

    jhonatandiazp Member HowtoForge Supporter

    I did follow that. Like I said, I set those ports in the conf file, and in the ISPconfig panel for all web servers. Those servers are facing the internet, not firewall or router in front of them. The problem is that the server is not sending the corrects ports for Data connection.
     
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    You said, 'I modified the pure-ftpd.conf (added passive port range) from 40110 to 40210.' - you clearly did not follow the instructions in the link I sent, as the pure-ftpd.conf file is nowhere mentioned there. It does appear possible to set that via pure-ftpd.conf as well (I've not tried that), though you didn't show what configuration you made, nor mention restarting pure-ftpd (which you probably did, but be sure that is done). Try running:
    Code:
    echo "40110 40210" > /etc/pure-ftpd/conf/PassivePortRange
    service pure-ftpd-mysql restart
    And post the ftp client log showing a passive mode connection made afterwards.
     
  6. jhonatandiazp

    jhonatandiazp Member HowtoForge Supporter

    My mistake. I am really bad with Linux. it does works what you sent me. Is like you said I did not follow the exact steps. I did not have the file called PassivePort Range in the conf folder. I see now. I do apologize for it. I need to keep learning Linux.
    Thank you really for the help
     
    Jesse Norell likes this.

Share This Page