store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu Apr 24, 2014 4:40 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: FTP Service not working.
Unread postPosted: Thu Nov 24, 2011 12:01 pm 
Offline
Forum User
Forum User

Joined: Tue Jul 19, 2011 6:30 am
Posts: 69
Location: United Kingdom
Our FTP service xinetd has suddenly stopped working - tried to restart xinetd but didn't fix the issue.

We get the following error in ftpzilla:
Status: Connection established, waiting for welcome message...
Error: Could not connect to server

Our /etc/hosts contains:
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

Also if we ping the 'hostname' from the server... it pings from different domains on our host.

Try to connect to FTP from ssh, get the following:
421 Service not available, remote server has closed connection

We are running Plesk 10.4.4 and Centos 5.7

If anyone could help that would be really great. Thanks.


Top
 Profile  
 
 Post subject: Re: FTP Service not working.
Unread postPosted: Fri Nov 25, 2011 5:11 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3548
Location: Chantilly, VA
Do you have firewall rules configured for FTP?

iptables -L -n | grep 21

Do you have the FTP firewall modules loaded?

lsmod | grep ftp

Whats listening on port 21:

netstat -anp | grep 21 | grep LISTEN

Are there any errors in your logs for the FTP service? (Try /var/log/messages to start, but depending on what FTP server you are using it might use a different log)

Is the client negotiating with the server? Do you see it trying to connect?

tethereal -i eth0 host your_ip and port 21

Replace eth0 with your network interface and your_ip with the client. Do you see it connecting?

If you do not have tethereal installed, run this command as root:

yum install wireshark

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: FTP Service not working.
Unread postPosted: Wed Nov 30, 2011 5:08 am 
Offline
Forum User
Forum User

Joined: Tue Jul 19, 2011 6:30 am
Posts: 69
Location: United Kingdom
Thanks for your help! Will keep that in my notes for future.

The problem was caused by a missing ClamAV integration library for ProFTP server.
proftpd[12598]: Fatal: unknown configuration directive 'ClamAV' on line 2 of '/etc/proftp-asl.conf'


Top
 Profile  
 
 Post subject: Re: FTP Service not working.
Unread postPosted: Wed Nov 30, 2011 7:08 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3548
Location: Chantilly, VA
https://www.atomicorp.com/wiki/index.ph ... sl.conf.27

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group