Solved

CentOS 7 & VSFTPd

Posted on 2014-10-08
13
561 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

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…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

785 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