vsftpd server not listing ( 425 Failed to establish connection)
Yesterday my ftp was working and today when I try to connect from my ftp client to my server (remotely) I get this:
[02/07/2012 03:39:33 p.m.] REST 0 [02/07/2012 03:39:33 p.m.] 350 Restart position accepted (0). COMANDO:> [02/07/2012 03:39:33 p.m.] PORT 192,168,1,30,210,251 [02/07/2012 03:39:33 p.m.] 200 PORT command successful. Consider using PASV. COMANDO:> [02/07/2012 03:39:33 p.m.] LIST [02/07/2012 03:40:33 p.m.] 425 Failed to establish connection. I read somewhere that could be a firewall issue so I tried disabling firewall but nothing. This is my vsftpd conf: anonymous_enable=YES local_enable=YES write_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YES data_connection_timeout=120 listen=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES I didnt make any changes on the server to crash ftp I also did a /etc/init.d/iptables save and /etc/init.d/iptables stop to disable iptables and now I cant see my old iptables config :/ Please any help I dont want to crash my entire server. I have a centOS 5.8 32 bits server. Thanks in advance |
Its kind of an off the wall solution but something I have run into on CentOS w/ vsftpd is problems with the ip_conntrack_ftp module not being loaded correctly causing this issue.
Try this: Code:
modprobe ip_conntrack_ftp |
Sorry for bother but it was my client ftp set on PORT I set it to AUTO and now works.
Its weird cause I set it to PORT cause before I had errors on AUTO, but now is the opposite. And because of this now I cant see my iptables conf! Is any way to restore the /etc/init.d/iptables save command to get it like before? Thanks! |
Yes, see the man page for "iptables-restore".
When you ran the save command it should have saved it to your /tmp/ directory at /tmp/$IPTABLES.XXXXXX |
modprobe ip_conntrack_ftp;
Thank you Kustom42 , I had the same issue on the CentOS6. this command solved it for me.:D |
All times are GMT -5. The time now is 08:32 PM. |