Solved

CentOS 7 & VSFTPd

Posted on 2014-10-08
13
543 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
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now