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 Connection Issue

Discussion in 'General Discussion' started by RootJohn, Mar 22, 2016.

  1. RootJohn

    RootJohn Member

    Joined:
    Jan 15, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    cPanel Access Level:
    Root Administrator
    Issue: Server sent passive reply with unroutable address. Using server address instead

    Solution: I've been informed to modify the pureftpd.conf file from internal address to the external address.

    I've read documentation and I don't clearly understand how to do this through WHM? It appears it needs to be done through the command line but can someone confirm for me please along with possibly offering the exact steps. I found the configuration file for pure-ftpd wrappers but it "if you want to run pure-ftpd with this configuration instead of command line options, please run the following command

    /usr.../pure-config.pl /usr/etc/pure-ftpd.conf"
     
  2. RootJohn

    RootJohn Member

    Joined:
    Jan 15, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    cPanel Access Level:
    Root Administrator
    So I figured out that there's more information if I scroll down, I found two places that I uncommented and modified.

    1) I have enabled PassivePortRange 30000-50000
    2) I have enabled ForcePassiveIP myIPhere (blocked for security purposes)

    I am now getting the following:
    Code:
    Status:    TLS connection established.
    Status:    Logged in
    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 (X,X,X,X,184,114)
    Command:    MLSD
    Error:    Connection timed out after 20 seconds of inactivity
    Error:    Failed to retrieve directory listing
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. RootJohn

    RootJohn Member

    Joined:
    Jan 15, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    cPanel Access Level:
    Root Administrator
    I have opened the ports at the networking layer and telnet does respond with
    220 --------------Welcome to Pure-FTPd [privsep] [TLD]
    220 --------------You are user number 1 of 50 allowed
    220---------------Local time listed...
    220---------------This is a private system - No Anonymous Login
    220---------------......

    I also followed the entire Pure-FTPd doc to enable the passive and etc. To me it sounds like there isn't a default directory set for the FTP users to load?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    FTP users are presented with their document root directory upon login, unless a directory is manually specified in the FTP client. Do you have a firewall management utility such as CSF installed on this system? To clarify, does the issue persist after following the steps in the document?

    Thank you.
     
  6. RootJohn

    RootJohn Member

    Joined:
    Jan 15, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    cPanel Access Level:
    Root Administrator
    Var/logs/messages in vi editor mode using the :~ command was used to locate the latest logs which stated the user was signed out after the user was logged in.

    Issue was fixed by also including the passive ports 30K-50K within the networking layer firewall.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  8. RootJohn

    RootJohn Member

    Joined:
    Jan 15, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    cPanel Access Level:
    Root Administrator
    Issue returned today... the only way I was able to make it list the directories was by allowing all ports from the firewall to go through. However, if i restricted it to the following ports:
    80
    2082
    2083
    2086
    2087
    2089
    3306
    443
    21
    22
    20
    30,000-50,000

    It would begin to not list the directories. Any idea why?
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page