SOLVED Problem connecting cPanel FTP Server throught proxy

leonep

Well-Known Member
Nov 18, 2014
121
3
18
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 !
 

leonep

Well-Known Member
Nov 18, 2014
121
3
18
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