LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2017, 01:45 PM   #1
EnderX
Member
 
Registered: Nov 2006
Posts: 66

Rep: Reputation: 15
Attempting to set up VSFTPD on new Centos 7 server - connection troubles - where to start looking for troubleshooting?


I am attempting to set up VSFTPD on a new server running CentOS 7. This server was set up with most common programs not installed, and I've been trying to muddle my way through. I've got an older server, running an older version of CentOS (and presumably an older version of VSFTPD) that I was attempting to use as a model. I am using the same ftp username/password for both systems.

I can get into the FTP directory on the original server either through the Windows command line, or through the program my predecessor built in Delphi 7 (using the Indy FTP components). With the new machine, I can connect from the Windows command line, but not with the external program. With the external program, during the 'connect' call to the third-party component, I'm instead getting an error message 'Socket Error # 10060 Connection timed out'. I am receiving this error both with the configuration file from the fresh VSFTPD install on the new system, and with the copied configuration file from the old system.

Given that both connections work on the old system, I'm assuming I've somehow done something wrong while configuring the new one.

Could someone please give me a good starting point for where in the configuration files I need to be looking, or if not the configuration files, where else I might be having problems?
 
Old 08-29-2017, 04:04 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Verify you've opened both ports 20 and 21 in firewalld (new frontend for iptables - don't edit iptables directly).

However, if this is a new server it might a be a good time to push abandoning ftp in favor of sftp which is much more secure. I was able to push back when we moved to a new server a few years back to eliminate all the ftp accounts. These days most of the B2B partners we deal with are shutting down ftp and making us use sftp to reach them.

Windows users can access sftp using WinSCP on their workstations which is a free download. (WinSCP by the way can also be used to connect to ftp servers.)
 
Old 08-29-2017, 04:46 PM   #3
EnderX
Member
 
Registered: Nov 2006
Posts: 66

Original Poster
Rep: Reputation: 15
Thank you for the advice - it looks like I didn't have port 20 opened. However, after adding that and restarting firewalld, I'm still seeing the same results from the Delphi program afterwards - it blocks for a time on the connect call, then errors out with the same '10060' error.

Given this, what is the likeliest next thing I should be looking for?
 
Old 08-30-2017, 07:43 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Have you compared /etc/vsftpd config files from your old server to those on your new server?

Have you verified vsftpd is in fact running on the new one:
systemctl status vsftpd

Have you verified whether anything is listening on port 21:
lsof -i :21
 
  


Reply



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
troubleshooting a simple dns server connection vincix Linux - Newbie 7 02-05-2014 01:43 AM
vsftpd failing to start on CentOS 6.4 thealmightyos Linux - Server 7 12-04-2013 06:08 AM
cant login via ftp(vsftpd) in centos 6.4 and cant start vsftpd SarahGurung Linux - Software 3 03-18-2013 08:35 AM
vsftpd failed to start CentOS 6 piernut Linux - Server 1 08-31-2012 06:32 AM
Problem trying to set up vsftpd in Centos 5.6 efilnei Linux - Server 4 04-19-2011 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:13 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration