FTP Connection Issue
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"
-
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: 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 listing0 -
Hello :) Have you verified those ports are allowed in your firewall? We have a document on this at: How to Enable FTP Passive Mode - cPanel Knowledge Base - cPanel Documentation Thank you. 0 -
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? 0 -
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. 0 -
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. 0 -
I am happy to see the issue is now resolved. Thank you for updating us with the outcome. 0 -
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? 0 -
Issue returned today
The fact that the issue returned suggests one of the changes you made was not preserved. Please verify that you modified /var/cpanel/conf/pureftpd/main as suggested in step 8 of the document referenced below: How to Enable FTP Passive Mode - cPanel Knowledge Base - cPanel Documentation Thank you.0
Please sign in to leave a comment.
Comments
8 comments