LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-02-2012, 01:54 PM   #1
oscargim
LQ Newbie
 
Registered: Mar 2011
Location: Argentina
Distribution: CentOS 5.8 32 Bits
Posts: 27

Rep: Reputation: 0
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
 
Old 07-02-2012, 02:00 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,588

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 07-02-2012, 02:08 PM   #3
oscargim
LQ Newbie
 
Registered: Mar 2011
Location: Argentina
Distribution: CentOS 5.8 32 Bits
Posts: 27

Original Poster
Rep: Reputation: 0
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!
 
Old 07-02-2012, 02:14 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,588

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
1 members found this post helpful.
Old 09-05-2012, 10:41 PM   #5
paysol
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
modprobe ip_conntrack_ftp;
Thank you Kustom42 , I had the same issue on the CentOS6. this command solved it for me.
 
  


Reply

Tags
ftp, vsftpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] vsftpd Error: Failed to retrieve directory listing jensge994 Linux - Server 4 07-06-2013 05:50 AM
425 - failed to establish connection with vsftp and the firewall on brucerowe Linux - Networking 4 02-07-2012 12:28 AM
425 Failed to establish connection. ftp saravanakumar Linux - Server 1 08-09-2011 07:47 AM
vsftpd - 425 failed to establish connection mohitanchlia Linux - Networking 7 03-17-2009 05:43 PM
425 failed to establish connection for ftp Networking linuxhippy Slackware 4 05-02-2005 03:45 AM


All times are GMT -5. The time now is 04:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration