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-22-2002, 12:00 AM   #1
Marcusj2
LQ Newbie
 
Registered: Dec 2002
Location: East Coast
Distribution: Redhat, SuSE
Posts: 5

Rep: Reputation: 0
telnet connection refused


Hello,

I have installed redhat 7.2 onto an older pentium. inetd services are running and I can telnet to localhost. I can also ftp to localhost, however I cannot either telnet or ftp to the box from another machine on the same network. When I attempt to I rereceive the message connection refused.

I have read other messages talking about checking the /etc/inetd.conf file for certain entries however I do not have an /etc/inetd.conf file AND I have connected to another redhat host running a slightly different kernal version of redhat than the one I am using and it does not have the /etc/inetd.conf file either AND it seems to work just fine for both telnet and ftp. I am curious if somehow a firewall is running on my box but I don't know how to tell for sure. I have tried ps -ax | grep fire and came up with nothing.

Please help,

Thanks,

Marc
 
Old 12-22-2002, 12:21 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
turn firewall off

/etc/rc.d/init.d/ipchains stop

or

/etc/rc.d/init.d/iptables stop


locate inetd.conf

/etc/xinetd.conf

Last edited by DavidPhillips; 12-22-2002 at 12:23 AM.
 
Old 12-22-2002, 01:04 AM   #3
Marcusj2
LQ Newbie
 
Registered: Dec 2002
Location: East Coast
Distribution: Redhat, SuSE
Posts: 5

Original Poster
Rep: Reputation: 0
Hello David,

Thanks for the reply. In the meantime I edited /etc/sysconfig/ipchains and added the following lines:

-A input -s 0/0 -d 0/0 25 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 80 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 21 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 22 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 23 -p tcp -y -j ACCEPT

I then rebooted the box. That seems to have fixed the issue, I can now both Telnet and FTP to the box in question. I will now however, revert to the unedited version of the file and attempt your recomendation.

Thanks again,

Marc
 
Old 12-22-2002, 01:24 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
my recommendation was to simply see if it was a firewall issue before we go posting all possible senarios. It obviously was the firewall, so there's no need for any more testing.
 
Old 12-22-2002, 01:31 AM   #5
Marcusj2
LQ Newbie
 
Registered: Dec 2002
Location: East Coast
Distribution: Redhat, SuSE
Posts: 5

Original Poster
Rep: Reputation: 0
thanks, that worked perfectly....


Marc
 
Old 12-22-2002, 02:11 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Cool

Anymore problems just let us know
 
Old 01-06-2003, 02:32 AM   #7
srini100
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by Marcusj2
Hello David,

Thanks for the reply. In the meantime I edited /etc/sysconfig/ipchains and added the following lines:

-A input -s 0/0 -d 0/0 25 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 80 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 21 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 22 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 23 -p tcp -y -j ACCEPT

I then rebooted the box. That seems to have fixed the issue, I can now both Telnet and FTP to the box in question. I will now however, revert to the unedited version of the file and attempt your recomendation.

Thanks again,

Marc
=====================
Hi Marc,
I have done all these things (including the entries in /etc/sysconfig/ipchgains). But still it is not working((

K.V. Srinivas Kumar
 
Old 01-06-2003, 03:11 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try this
Code:
service telnet on
 
Old 01-06-2003, 03:14 AM   #9
srini100
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by DavidPhillips
try this
Code:
service telnet on
====
Hi David,

What should I do?
 
Old 01-06-2003, 12:08 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
open a xterm or type in a terminal the command

Code:
service telnet on
it might do something, it depends on your distro
 
Old 01-06-2003, 07:49 PM   #11
srini100
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
Angry

Quote:
Originally posted by DavidPhillips
open a xterm or type in a terminal the command

Code:
service telnet on
it might do something, it depends on your distro
No. It did not work.

When I typed /sbin/service telnet on
I got
telnet: unrecognised service

I have "telnet" service defined in /etc/services file.

Any clues!!!
 
Old 01-07-2003, 02:32 AM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I would say it's not installed


try rpm -qa | grep telnet

you probably only have the telnet client installed, and not the server


What are you using Mandrake?
 
Old 01-07-2003, 11:10 AM   #13
ry
Member
 
Registered: Apr 2001
Location: Earth
Distribution: Red Hat, Fedora Core
Posts: 44

Rep: Reputation: 15
to turn the telnet service on, please use the command:

chkconfig --level 345 telnet on

To make sure that the telnet-server is in your system issue the command:

rpm -q telnet-server
 
Old 01-07-2003, 03:10 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
That's not going to work right, telnet is a service in xinetd.d.
You can use chkconfig if you want to instead of service.
To use chkconfig, the command is
Code:
chkconfig telnet on
It's not installed in initd, so levels are not supported
 
Old 01-14-2003, 11:33 PM   #15
therock
LQ Newbie
 
Registered: Jan 2003
Posts: 8

Rep: Reputation: 0
[root@localhost root]# service telnet on
telnet: unrecognized service
[root@localhost root]# chkconfig telnet on
error reading information on service telnet: No such file or directory
[root@localhost root]# telnet
telnet> open localhost
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet>


Seem like i dont have telnet installed on my REd Hat Linux 8.0. Now i want to set up Telnet server and client on my system..What can i do?
 
  


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 hcmk Linux - Networking 13 09-02-2006 02:31 PM
telnet connection refused turbo_acura Linux - Networking 8 11-21-2004 09:07 AM
Telnet connection refused naveenpn Linux - Networking 2 02-17-2004 07:16 AM
telnet: Connection refused hnash53 Linux - Networking 2 01-23-2004 02:12 PM
Telnet: Connection Refused Erice60rng Linux - Security 7 01-20-2003 06:15 PM

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

All times are GMT -5. The time now is 10:11 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