Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Problem connecting cPanel FTP Server throught proxy

Discussion in 'General Discussion' started by leonep, Aug 27, 2018.

Tags:
  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    106
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    Hi,
    i have problem connecting to FTP server through proxy
    My sever is a pureftp-d and is working good. My server is not behind NAT and works with passive ports good

    but if i try to connect from proxy with my client (filezilla or other) i got error.

    this is log containing error:
    Code:
    Status:    Connecting to XXXXXXX through SOCKS5 proxy
    Status:    Resolving address of localhost
    Status:    Connecting to 127.0.0.1:12345...
    Status:    Connection with proxy established, performing handshake...
    Status:    Connection established, waiting for welcome message...
    Status:    Initializing TLS...
    Status:    Verifying certificate...
    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:    EPSV
    Response:    500 Unknown command
    Error:    Failed to retrieve directory listing
    i have made some test:

    1 - if i connect with no proxy it works with same PC, same connection
    2 - if i change server to proftpd it works also with proxy

    now, i don't want to switch my server to proftpd because, like i read from documentation, Brute force protection is not available on proftpd....
    someone can help me to fix pure-ftpd or at least add brute force to proftpd

    thanks !
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,881
    Likes Received:
    482
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is the proxy IP address being blocked by your firewall?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    106
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    sorry not from but through proxy
    i have proxy ip address in whitelist csf.allow
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    106
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    Well , I share solution here for help someone in the future

    Netbeans help me...
    in the configuration options for FTP there is a note :
    "Configured HTTP proxy will be used only for pureftp-d, to avoid problems do not use SOCKS5"

    so it seems that proftpd accept to work with SOCKS5 and pure-ftpd in HTTP Proxy
    hope it helps
    bye
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,299
    Likes Received:
    2,155
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @leonep,

    I'm glad to see you were able to find a solution. Thank you for sharing the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice