LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-09-2005, 07:23 AM   #1
svar
Member
 
Registered: Jul 2003
Posts: 362

Rep: Reputation: 30
FTP/TELNET SERVER: Service not available/connection refused. What does it mean?


I have a machine that I want to use as an ftp/telnet server. Let's not discuss security issues here
-suffice to say that this is a local environmet with no connection to the outside world.

I use xinetd (this is a SUSE box, I did not make
any special changes)
both /etc/xinetd.d/vsftpd and /etc/xinetd.d/telnetd are chmodded 777

when trying to connect, even from LOCAL
I get for ftp
Service not available , remote server closes connection
and for telnet connection refused
# ftp 172.16.167.4
Connected to 172.16.167.4.
421 Service not available, remote server has closed connection.
ftp> quit
# telnet 172.16.167.4
Trying 172.16.167.4... telnet: connect to address 172.16.167.4: Connection refused

Now
# cat /etc/xinetd.d/telnetd
service telnetd
{
socket_type = stream
server=/usr/sbin/in.telnetd
protocol = tcp
wait = no
user = root
disable =no
}


# cat /etc/xinetd.d/vsftpd
# default: off
# description:
# The vsftpd FTP server serves FTP connections. It uses
# normal, unencrypted usernames and passwords for authentication.
# vsftpd is designed to be secure.
service ftp
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/vsftpd
# server_args =
# log_on_success += DURATION USERID
# log_on_failure += USERID
# nice = 10
disable = no
}

# cat /etc/xinetd.d/telnetd
service telnetd
{
socket_type = stream
server=/usr/sbin/in.telnetd
protocol = tcp
wait = no
user = root
disable =no
}

I have set hosts.allow to ALL:ALL

Any ideas what is wrong?
 
Old 12-09-2005, 09:48 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,792

Rep: Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248
Is xinetd running?
Is vsftp listed in the /etc/services file?

Have you tried connecting to localhost instead of the IP address i.e.
# ftp localhost
 
Old 12-11-2005, 05:31 AM   #3
svar
Member
 
Registered: Jul 2003
Posts: 362

Original Poster
Rep: Reputation: 30
michaelk, thanks, but:
>Is xinetd running?
Sure, ps -ef -u myuser or root finds /usr/bin/xinetd running
>Is vsftp listed in the /etc/services file?
No, but it is not listed either in a corresponing slack installation (that used inetd instead of xinetd though) and which works fine as ftp and telnet server. If I need that, what exactly do I add to /etc/services?

>Have you tried connecting to localhost instead of the IP address i.e.
># ftp localhost
Sure, same result(service not available, remote host has closed connection)
 
Old 12-11-2005, 09:38 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,792

Rep: Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248
Have you checked any logs for errors?
 
Old 12-13-2005, 09:30 AM   #5
svar
Member
 
Registered: Jul 2003
Posts: 362

Original Poster
Rep: Reputation: 30
You mean /var/log/messages?

Dec 13 17:29:51 quality4 kcheckpass[23834]: Authentication failure for myuser (invoked by uid 1000)
Dec 13 17:29:51 quality4 syslog-ng[3226]: STATS: dropped 0
Dec 13 17:30:31 quality4 su: (to root) myuser on /dev/pts/4
Dec 13 17:31:32 quality4 xinetd[23891]: libwrap refused connection to ftp (libwrap=pure-ftpd) from 172.16.167.3

Looks like it tries to use pue-ftpd??
And what about the authentication failure?
However, when I tried to ftp and then looked at /var/log/messages. there
was no message....
 
Old 12-13-2005, 10:37 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,792

Rep: Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248
Whatever ftp server your trying to use may not be configured for tcp-wrapper.
post the output of the following command
strings -f vsftp | grep hosts_access

Also try pure-ftp instead of vsftp
 
Old 12-15-2005, 06:25 AM   #7
svar
Member
 
Registered: Jul 2003
Posts: 362

Original Poster
Rep: Reputation: 30
No such file for either case.
(I ran as root from a home directory. )
Now what?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet connection refused Marcusj2 Linux - Networking 22 09-07-2006 10:35 PM
telnet connection refused hcmk Linux - Networking 13 09-02-2006 02:31 PM
Telnet connection refused naveenpn Linux - Networking 2 02-17-2004 07:16 AM
Connection Refused telnet/ftp vhandrade Linux - Networking 1 10-19-2001 02:54 PM
Telnet/FTP Connection refused Rfriend@ucwv.edu Linux - Newbie 6 07-31-2001 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration