Blog

How to fix ftp connection time out error!

Tags: connection time outftpftp errorpure-ftp

Published on: June 5, 2009 by Faheem P.

How to fix ftp connection time out error!

Scenario:

Sometimes our cPanel server support clients complaints that they are getting connection timeout error while connecting through FTP on cPanel servers, take a look at how to resolve the error

!connection failed xx.xx.xxx.xxx – connection timed out
!connectio:error 0
PORT xxx,xxx,x,x,x,xxx
500 Illegal PORT command
!Failed “port”
!Retrieve of folder listing failed (0)

The above error happens when we are able to connect but the folder listing fails!

Resolution:
Login to the WHM==> FTP Server Selection
change the FTP server to Pure-FTPD ==> save

Now ssh into the server as root
open the pure-ftp conf file /etc/pure-ftpd.conf
Find the FTP port no: used
And find the “PassivePortRange” and add the port range
for eg :

PassivePortRange 30000 35000

Save and quit

Now goto csf(firewall) config file, add the ftp port along with the passive port range

eg :

# Allow incoming TCP ports
TCP_IN = “20,22,25,53,80,110,143,443,465,587,993,995,2001,2077,2078,2082,2083,2086,2087,2095,2096,30000:35000”

Restart csf & Pure-ftpd

Category : Troubleshooting

Faheem P.

Faheem P.

Faheem enjoys learning new technologies and loves to implement cutting edge solutions. He is one of the most active member in various technical forums and is a familiar face in various brain storming sessions. He takes great pride in being an explorer and the best thing you can be sure about in his room is the backpack!!

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items