LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Installed CSF and FTP Got blocked... (http://www.linuxquestions.org/questions/linux-server-73/installed-csf-and-ftp-got-blocked-663064/)

yah0m 08-15-2008 04:51 PM

Installed CSF and FTP Got blocked...
 
OS: CentOS 5 (command line, no WHM or CPanel)
FTP Service: ProFTPd
Port 24
Client: SmartFTP

.conf
Code:

TCP_IN = "24,80,2200"
TCP_OUT = "20,21,22,25,37,43,53,80,443"
UDP_IN = ""
UDP_OUT = "20,21,53,113,123"

FTP Log:
Code:

[14:21:01] 257 "/" is the current directory
[14:21:01] CWD /html
[14:21:02] 250 CWD command successful
[14:21:02] PWD
[14:21:02] 257 "/html" is the current directory
[14:21:02] TYPE A
[14:21:03] 200 Type set to A
[14:21:03] PASV
[14:21:03] 227 Entering Passive Mode (67.*,*,*,225,213).
[14:21:03] Opening data connection to 67.*.*.*Port: 57813 < port changes
[14:21:03] LIST -aL
[14:21:24] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

the only thing I can think of is that the FTP connection keep getting opened on a random port, but I'm not sure how to fix that....

HostsVault 08-15-2008 09:29 PM

There is a setting on /etc/protftpd.conf called PassivePorts set it up like this :

PassivePorts 10000 10100

And enable this range of ports in your CSF and your passive FTP connection should go fine .


All times are GMT -5. The time now is 10:10 AM.