FTP stopped working suddenly

TapanB

Active Member
Nov 29, 2004
40
0
156
Hi,

FTP was working fine but suddenly it has stopped working.

When trying to connect it connects fine but stops at LIST command and then times out.

STATUS:> [17-05-2008 00:06:52] Resolving host name ftp.somedom.com...
STATUS:> [17-05-2008 00:06:52] Host name ftp.somedon.com resolved: ip = 123.123.123.123.
STATUS:> [17-05-2008 00:06:52] Connecting to FTP server... ftp.somedom.com:21 (ip = 123.123.123.123)...
STATUS:> [17-05-2008 00:06:52] Socket connected. Waiting for welcome message...
[17-05-2008 00:06:53] 220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 13:36. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
STATUS:> [17-05-2008 00:06:53] Connected. Authenticating...
COMMAND:> [17-05-2008 00:06:53] USER someuser
[17-05-2008 00:06:53] 331 User someuser OK. Password required
COMMAND:> [17-05-2008 00:06:53] PASS *****
[17-05-2008 00:06:54] 230-User someuser has group access to: someuser
230 OK. Current restricted directory is /
STATUS:> [17-05-2008 00:06:54] Login successful.
COMMAND:> [17-05-2008 00:06:54] PWD
[17-05-2008 00:06:54] 257 "/" is your current location
STATUS:> [17-05-2008 00:06:54] Home directory: /
STATUS:> [17-05-2008 00:06:54] This site supports features.
STATUS:> [17-05-2008 00:06:54] This site supports SIZE.
STATUS:> [17-05-2008 00:06:54] This site can resume broken downloads.
COMMAND:> [17-05-2008 00:06:54] REST 0
[17-05-2008 00:06:54] 350 Restarting at 0
COMMAND:> [17-05-2008 00:06:54] PORT 192,168,1,5,192,103
[17-05-2008 00:06:55] 200 PORT command successful
COMMAND:> [17-05-2008 00:06:55] LIST
[17-05-2008 00:07:40] 425 Could not open data connection to port 49255: Connection timed out
ERROR:> [17-05-2008 00:07:40] Server can't open data connection.
Can anyone tell me whats happening ?

Thanks.
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
Check with your hosting provider to see if there was any temporary issue with their server.
 

TapanB

Active Member
Nov 29, 2004
40
0
156
Hi,

FTP firewall settings needed to be adjusted. And don't know how it got bad. It was working fine for years.

Anyways.

Thanks.
 

karikas

Member
Mar 8, 2006
15
0
151
Firewall settings?

Hi, I've experienced the same problem right on May 17! Can you post what the firewall settings you had to tweak were?

Thank you!
 

karikas

Member
Mar 8, 2006
15
0
151
Solved!

Nevermind actually, I figured it out... it appears the on May 17 there was some kind of update of pureftp or the apf firewall, I dunno, but basically I did this:

- I checked /etc/pure-ftpd.conf and saw that this line was in there:
PassivePortRange 30000 50000

- I checked the APF firewall configuration in /etc/apf/conf.apf and verified that the 30000 to 50000 port range was enabled in IG_TCP_CPORTS and IG_UDP_CPORTS (entered as 30000_50000).

- I restarted both APF and PureFTP

Voila, seems to work fine!
 

TapanB

Active Member
Nov 29, 2004
40
0
156
Hi,

Yes that was the issue:
The ftp passive port range in the firewall was not opened. As soon as I opened it and restarted everything started working fine.

Sorry for the delay.

Thanks.