0

FTP Server Errors Out

Crazy Raisin 9 ár síðan updated by Ivan Nikolaev 9 ár síðan 4
I am using the ajenti-v-ftp-pureftpd plugin on Centos 6 machine and Filezilla on my Windows client. It resolves the domain to the address but I get the following error:

Command:
PASV
Response:
227 Entering Passive Mode (73,36,12,14,58,44)
Command:
MLSD
Error:
Connection timed out
Error:
Failed to retrieve directory listing


How to resolve this?
Hi.

I have temporary solution.
Temporary, because after restarting pure-ftpd from ajenti cp widget, those settings has been reseted.
Also will try to make it permanent with file permissions.
I did  chmod 444 /etc/pure-ftpd/pure-ftpd.conf and will see if it helps.

What i did is.

1. nano /etc/pure-ftpd/pure-ftpd.conf
Add this line:
PassivePortRange 30000 35000

2. In firewall rules in RAW EDIT add those lines
-A INPUT --protocol tcp --match state --state NEW --match tcp --destination-port 21 -j ACCEPT
-A INPUT --protocol tcp --destination-port 30000:35000 -j ACCEPT

Then
Save and apply firewall rules and restart pure-ftpd service
service pure-ftpd restart

Also if You would like to change pure-ftpd welcome message (motd):
nano /etc/init.d/pure-ftpd

second line in start section have to look like this
daemon "$pure_launch_script $pure_config --daemonize > /dev/null -F /etc/pure-ftpd/welcome.msg"

full start section
start() {
echo -n $"Starting $prog: "
daemon "$pure_launch_script $pure_config --daemonize > /dev/null -F /etc/pure-ftpd/welcome.msg"
RETVAL=$?
[ $RETVAL = 0 ] && touch /var/lock/subsys/pure-ftpd
echo
}


After that create file
nano /etc/pure-ftpd/welcome.msg

And put there Your welcome message.
service pure-ftpd restart

And You good to go
444 did not helped.
File has been changed to its original again.

I'm not sure what is doing that.
Now testing chattr +i /etc/pure-ftpd/pure-ftpd.con