Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-22-2002, 12:00 AM
|
#1
|
LQ Newbie
Registered: Dec 2002
Location: East Coast
Distribution: Redhat, SuSE
Posts: 5
Rep:
|
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
|
|
|
12-22-2002, 12:21 AM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
12-22-2002, 01:04 AM
|
#3
|
LQ Newbie
Registered: Dec 2002
Location: East Coast
Distribution: Redhat, SuSE
Posts: 5
Original Poster
Rep:
|
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
|
|
|
12-22-2002, 01:24 AM
|
#4
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
12-22-2002, 01:31 AM
|
#5
|
LQ Newbie
Registered: Dec 2002
Location: East Coast
Distribution: Redhat, SuSE
Posts: 5
Original Poster
Rep:
|
thanks, that worked perfectly....
Marc
|
|
|
12-22-2002, 02:11 AM
|
#6
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
Cool
Anymore problems just let us know
|
|
|
01-06-2003, 02:32 AM
|
#7
|
LQ Newbie
Registered: Jan 2003
Posts: 3
Rep:
|
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
|
|
|
01-06-2003, 03:11 AM
|
#8
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
|
|
|
01-06-2003, 03:14 AM
|
#9
|
LQ Newbie
Registered: Jan 2003
Posts: 3
Rep:
|
Quote:
Originally posted by DavidPhillips
try this
|
====
Hi David,
What should I do?
|
|
|
01-06-2003, 12:08 PM
|
#10
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
open a xterm or type in a terminal the command
it might do something, it depends on your distro
|
|
|
01-06-2003, 07:49 PM
|
#11
|
LQ Newbie
Registered: Jan 2003
Posts: 3
Rep:
|
Quote:
Originally posted by DavidPhillips
open a xterm or type in a terminal the command
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!!!
|
|
|
01-07-2003, 02:32 AM
|
#12
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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?
|
|
|
01-07-2003, 11:10 AM
|
#13
|
Member
Registered: Apr 2001
Location: Earth
Distribution: Red Hat, Fedora Core
Posts: 44
Rep:
|
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
|
|
|
01-07-2003, 03:10 PM
|
#14
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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
|
|
|
01-14-2003, 11:33 PM
|
#15
|
LQ Newbie
Registered: Jan 2003
Posts: 8
Rep:
|
[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:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|