Welcome to Centmin Mod Community
Become a Member

Impossible to use FTP - connection timout error

Discussion in 'Other Centmin Mod Installed software' started by Aigars, Dec 22, 2016.

Tags:
  1. Aigars

    Aigars New Member

    7
    2
    3
    Jan 18, 2016
    Ratings:
    +2
    Local Time:
    12:27 PM
    I'm stuck with FTP :(
    It is imbossible to use it normally. I get connection timeout error very often

    This problem is with V1.2.3-Eva2000.08 Stable and V1.2.3-Eva2000.09 Beta latest release.

    FTP working for a while, then ftp stucks with connection timout error, when I run "csf -r" then again it starts working for a while and then again connection timout.
    Sometimes it happens after 1000+ files uplaod/download, sometimes i can't even upload/download even one file or just open folder on ftp to see file list.

    Also FTP is very slow (comparing to all other hostings what I have used).
    Only option to upload/download files is through ssh root access, but this is also very slow (not upload/dowmload speed, but connection time to start upload/download file) and I can't give root access to my hosting clients.

    I have tried:
    - use ftp passive mode
    - add IP exeption to CSF "csf -a xxx.xxx.xxx.xxx"
    - even with disabled CSF "csf -x" ftp sometimes give me connection timout error


    What else can I do to solve this problem?
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    See FAQ items 40 & 41 for details and clues. Also see FAQ item 2, Centmin Mod isn't made for shared hosting and isolated user hosting.
    • Did you make sure to enable explicit TLS/SSL mode and enable PASV passive mode like in 1st post here.
    • Which FTP client ? As not all FTP clients support FTP explicit TLS/SSL mode only clients listed at bottom of this post.
    • Check if you're ISP IP address is being blocked by CSF Firewall. See FAQ items 40 & 41.
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    12:27 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    It is a sporadic issue that i have also but i give up with it :(

    Don't know if ftp server is auto updated so if it is a bug (don't think so) we will get an updated fixed version....

    I tested using Filezilla and follow all instructions and i can see the issue when a user try to upload many files 500+ ...

    Debug using full verbose from Filezilla report conection lost but i am sure that connection is very stable as i was able to repeat it with the same results and after that i did the upload using with sftp and all was perfect !
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Hmm probably needs more tuning of the pre-set limits. Have you guys tried in Filezilla limiting the max simultaneous connection limits to a much lower number ? what happens when you set it to 1, 2 or 4 ? from FAQ item 40

    Maximum simultaneous transfers = 4

    what if you change Limit for concurrent download/uploads ?

    from FAQ item 40
    upload_2016-12-23_12-58-12.png

    One thing to remember is Centmin Mod isn't made for shared hosting but for normal one user to manage and access all these hosted sites which means at initial install time that one user's IP is whitelisted by CSF Firewall and ignored for distributed/brute force attack protections. So usually yourself don't get issues such as these in most situations. If you share or allow other users to upload/download and access server, then they would be subject to just security protections preset in CSF Firewall. So you probably need to whitelist those user's ISP ips too IF you trust them with such access. Or to tell them to reduce their simultaneous connection and transfer limits to say 1, 2 or 4 and see if it helps.

    Other non-Centmin Mod based servers might not run into this issue because there maybe no protection against distributed FTP attacks at firewall level.
     
    Last edited: Dec 23, 2016
  5. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+