• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 600
  • Last Modified:

CentOS 7 & VSFTPd

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
detox1978
Asked:
detox1978
  • 8
  • 4
2 Solutions
 
Seth SimmonsSr. Systems AdministratorCommented:
if you do netstat -at do you see it listening on port 21?
is iptables running?
0
 
detox1978Author Commented:
# 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
 
detox1978Author Commented:
iptables is not running
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Seth SimmonsSr. Systems AdministratorCommented:
if you're on that server and you do telnet <local system name> 21 it doesn't respond?
0
 
detox1978Author Commented:
When I am on the server I can telnet to itself on port 21
0
 
Seth SimmonsSr. Systems AdministratorCommented:
ok...from another system it fails?
any firewall in between?
0
 
detox1978Author Commented:
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
 
GaryCommented:
Did you actually start the FTP server? (Assuming the port is open in the Firewall on the Centos server)
0
 
detox1978Author Commented:
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
 
detox1978Author Commented:
there is a service running called firewalld
0
 
detox1978Author Commented:
and stopping it grants ftp access....
0
 
Seth SimmonsSr. Systems AdministratorCommented:
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
 
detox1978Author Commented:
Thanks.  I didnt realise it was there....
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 8
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now