LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   telnet connection refused (https://www.linuxquestions.org/questions/linux-networking-3/telnet-connection-refused-39095/)

Marcusj2 12-22-2002 12:00 AM

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

DavidPhillips 12-22-2002 12:21 AM

turn firewall off

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

or

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


locate inetd.conf

/etc/xinetd.conf

Marcusj2 12-22-2002 01:04 AM

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

DavidPhillips 12-22-2002 01:24 AM

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.

Marcusj2 12-22-2002 01:31 AM

thanks, that worked perfectly....


Marc

DavidPhillips 12-22-2002 02:11 AM

Cool

Anymore problems just let us know

srini100 01-06-2003 02:32 AM

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

DavidPhillips 01-06-2003 03:11 AM

try this
Code:

service telnet on

srini100 01-06-2003 03:14 AM

Quote:

Originally posted by DavidPhillips
try this
Code:

service telnet on

====
Hi David,

What should I do?

DavidPhillips 01-06-2003 12:08 PM

open a xterm or type in a terminal the command

Code:

service telnet on
it might do something, it depends on your distro

srini100 01-06-2003 07:49 PM

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!!!

DavidPhillips 01-07-2003 02:32 AM

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?

ry 01-07-2003 11:10 AM

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

DavidPhillips 01-07-2003 03:10 PM

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

therock 01-14-2003 11:33 PM

[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?


All times are GMT -5. The time now is 07:14 PM.