The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FTP Acting Up

Discussion in 'General Discussion' started by Humza, Sep 26, 2011.

  1. Humza

    Humza Member

    Joined:
    Sep 26, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Essex, UK
    cPanel Access Level:
    Root Administrator
    Hello There,

    I currently own a webhost, I hae experience with server administration etc. I have not really managed WHM before however. My clients have been complaining about FTP being very slow and some saying FTP doesn't work at all. I can connect nicely and fast from my computer, however I TeamViewed into a client of mine on the same ISP and town as me and he cannot connect.

    PHP:
    Status:    Resolving address of lion.-----.com
    Status
    :    Connecting to 204.93.201.156:21...
    Status:    Connection establishedwaiting for welcome message...
    Response:    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response:    220-You are user number 6 of 50 allowed.
    Response:    220-Local time is now 11:20. Server port21.
    Response
    :    220 You will be disconnected after 15 minutes of inactivity.
    Command:    USER -----
    Response:    331 User ----- OKPassword required
    Command
    :    PASS -----
    Response:    230 OKCurrent restricted directory is /
    Status:    Connected
    Status
    :    Retrieving directory listing...
    Command:    PWD
    Response
    :    257 "/" is your current location
    Command
    :    TYPE I
    Response
    :    200 TYPE is now 8-bit binary
    Command
    :    PASV
    Response
    :    227 Entering Passive Mode (204,93,201,156,248,170)
    Command:    MLSD
    Error
    :    Connection timed out
    Error
    :    Failed to retrieve directory listing
    I've done a tranceroute and all and it looks fine. I've even tried connecting to my personal VPS and started an FTP service on there and been able to login fine. I'm not sure why it is acting like this, I have tried to switch FTP servers and tweak with the config options in WHM.

    Any ideas?

    Regards,
    -Humza
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This looks like a misconfiguration of the firewall. In short, the firewall is not configured to work with FTP passive mode. Do you have CSF installed? Even if you do not, section #13 of the following page explains what is happening, and how to fix it:

    http://www.configserver.com/free/csf/readme.txt

    In passive mode, the FTP client selects a random port over which the transaction will take place, and tells the FTP server to use that port. If the random port is not open in the firewall, the connection will time out, which is what is happening for you. The FTP service needs to be told an acceptable range of ports to use for passive-mode FTP, and the firewall needs to be configured to match the range that is configured in the FTP service.

    The fact that you can connect inside the server, but outside the server, points to a firewall problem.
     
Loading...

Share This Page