Solved

CentOS 7 & VSFTPd

Posted on 2014-10-08
13
566 Views
Last Modified: 2014-10-08
Hi All,

I recently setup a Cent OS 7 server on my local network.

I'm trying to enable FTP, but struggling.

I followed this guide and everything seemed to work.  However I can't telnet to port 21 on the server.  Port 22 works.

http://www.server-world.info/en/note?os=CentOS_7&p=ftp

Any suggestions?

D
0
Comment
Question by:detox1978
  • 8
  • 4
13 Comments
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 250 total points
ID: 40368506
if you do netstat -at do you see it listening on port 21?
is iptables running?
0
 
LVL 2

Author Comment

by:detox1978
ID: 40368515
# netstat -at

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 localhost:smtp          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:ftp             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN
tcp        0     52 compare.road3.local:ssh ambackup.road3.lo:57062 ESTABLISHED
tcp6       0      0 localhost:smtp          [::]:*                  LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN

Open in new window

0
 
LVL 2

Author Comment

by:detox1978
ID: 40368520
iptables is not running
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 34

Expert Comment

by:Seth Simmons
ID: 40368527
if you're on that server and you do telnet <local system name> 21 it doesn't respond?
0
 
LVL 2

Author Comment

by:detox1978
ID: 40368542
When I am on the server I can telnet to itself on port 21
0
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 40368549
ok...from another system it fails?
any firewall in between?
0
 
LVL 2

Author Comment

by:detox1978
ID: 40368572
from all other PC's on the same network it fails.

There are no firewalls on the other PC's.

Most notable is the fact I can telnet from other PC's to SSH port 22.  So more than likely it is a setting on the Cent OS server.
0
 
LVL 58

Accepted Solution

by:
Gary earned 250 total points
ID: 40368580
Did you actually start the FTP server? (Assuming the port is open in the Firewall on the Centos server)
0
 
LVL 2

Author Comment

by:detox1978
ID: 40368593
Yes the service is running.

The server says it's listening on port 21 and I can telnet to port 21 using localhost.

Are there any filters in CentOS 7 / VSFTPd that stops network connections?
0
 
LVL 2

Author Comment

by:detox1978
ID: 40368606
there is a service running called firewalld
0
 
LVL 2

Author Comment

by:detox1978
ID: 40368608
and stopping it grants ftp access....
0
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 40368625
ok...that's the new firewall daemon
haven't had much time to play with RHEL/CentOS 7 yet

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.html
0
 
LVL 2

Author Closing Comment

by:detox1978
ID: 40368630
Thanks.  I didnt realise it was there....
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Choosing CentOS 16 108
awk sed 8 68
what do I need to host my own web sites? 13 51
WordPress: Debugging from my Windows 10 Desktop 6 38
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question