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 |
turn firewall off
/etc/rc.d/init.d/ipchains stop or /etc/rc.d/init.d/iptables stop locate inetd.conf /etc/xinetd.conf |
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 |
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.
|
thanks, that worked perfectly....
Marc |
Cool
Anymore problems just let us know |
Quote:
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 |
try this
Code:
service telnet on |
Quote:
Hi David, What should I do? |
open a xterm or type in a terminal the command
Code:
service telnet on |
Quote:
When I typed /sbin/service telnet on I got telnet: unrecognised service I have "telnet" service defined in /etc/services file. Any clues!!! |
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? |
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 |
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 |
[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. |