Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CentOS 7 & VSFTPd

Posted on 2014-10-08
13
Medium Priority
?
589 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
13 Comments
 
LVL 35

Assisted Solution

by:Seth Simmons
Seth Simmons earned 1000 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
Understanding Linux Permissions

Linux for beginners: How to view the permissions associated with files and directories and also how you can change them.

 
LVL 35

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 35

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 1000 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 35

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Noteā€¦
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

670 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