Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting telnet to work with xinetd

0 views
Skip to first unread message

Anthony Lee

unread,
Jul 18, 2001, 8:06:02 PM7/18/01
to
Hi,

I am trying to configure xinetd on RH7.1. When I am on the console of my
machine, I can telnet back to itself. But from another machine I get
connection refused. What could be wrong?
--
Anthony Lee
Energex
150 Charlotte Street ..-- __o
Brisbane ....-- _ \<,_
Qld 4000 ____ (_)/ (_)
Australia
voice:+61 7 3407 4541
fax: +61 7 3407 4607
email: AL...@energex.com.au

Dean Thompson

unread,
Jul 18, 2001, 10:43:26 PM7/18/01
to Anthony Lee

Hi!,

> I am trying to configure xinetd on RH7.1. When I am on the console of my
> machine, I can telnet back to itself. But from another machine I get
> connection refused. What could be wrong?

When RH 7.1 installs itself, it installs a firewall which is most likely
blocking your requests. You can try this and see whether or not it works:

/sbin/ipchains -I input 1 -s 0.0.0.0/0 -d <your ip> 23 -j ACCEPT

See if that allows telnet connections to enter your system.

See ya

Dean Thompson

--
+____________________________+____________________________________________+
| Dean Thompson | E-mail - Dean.T...@csse.monash.edu.au |
| Bach. Computing (Hons) | ICQ - 45191180 |
| PhD Student | Office - <Off-Campus> |
| School Comp.Sci & Soft.Eng | Phone - +61 3 9903 2787 (Gen. Office) |
| MONASH (Caulfield Campus) | Fax - +61 3 9903 1077 |
| Melbourne, Australia | |
+----------------------------+--------------------------------------------+

Dave Uhring

unread,
Jul 18, 2001, 11:22:42 PM7/18/01
to
Anthony Lee wrote:

> Hi,
>
> I am trying to configure xinetd on RH7.1. When I am on the console of my
> machine, I can telnet back to itself. But from another machine I get
> connection refused. What could be wrong?

You need to edit /etc/xinetd.d/telnet. It should be obvious what you need
to do, then restart xinetd.

ANTHONY LEE

unread,
Jul 19, 2001, 1:04:50 AM7/19/01
to Dean Thompson
Thanks Dean,

I just simply ran the firewall scripts with the stop option and it did solve
my problem. Thanks for the help

--

Anthony Lee
Energex
150 Charlotte Street ..-- __o
Brisbane ....-- _ \<,_
Qld 4000 ____ (_)/ (_)
Australia

voice:+61 7 3407 4541, 3407 5071
fax: +61 7 3407 4607, 3407 5062
email: AL...@energex.com.au

Starwing

unread,
Jul 19, 2001, 12:20:00 PM7/19/01
to
RedHat 7.1 comes with IPChain that blocks telnet port by default. That is
why you can telnet from your own machine but not the outside world.

If he has not edited /etc/xinetd.d/telnet, how the hell did he managed to
telnet to himself ?

Dave Uhring wrote:


--
Starwing
Pls to stand 50 ft away from me !!
"If youre not on DALnet, you're on the wrong network!"
/server irc.dal.net (random DALnet server)
Give Vision a try! vision.dal.net (ports 6660 thru 6669 and 7000

Dave Uhring

unread,
Jul 19, 2001, 8:56:07 PM7/19/01
to

> Dave Uhring wrote:
>
>> Anthony Lee wrote:
>>
>>> Hi,
>>>
>>> I am trying to configure xinetd on RH7.1. When I am on the console of my
>>> machine, I can telnet back to itself. But from another machine I get
>>> connection refused. What could be wrong?
>>
>> You need to edit /etc/xinetd.d/telnet. It should be obvious what you
>> need to do, then restart xinetd.
>>
>>
>
>
Starwing wrote:

> RedHat 7.1 comes with IPChain that blocks telnet port by default. That is
> why you can telnet from your own machine but not the outside world.
>
> If he has not edited /etc/xinetd.d/telnet, how the hell did he managed to
> telnet to himself ?
>

Please bottom post on these news groups. I have taken the liberty of
moving your post to the bottom.

One can telnet to 127.0.0.1 even without a telnet server being present.
Only the telnet client is required.

If one wishes to be able to accept telnet connections on port 23 from other
hosts it is required on RH-7.1 that the /etc/xinetd.d/telnet file be edited
and xinetd restarted, plain and simple.

There are other commands which will restart xinetd and if Red Hat is the
only system you use then learn them. I also use several other Unix, BSD
and Linux systems and do not feel the need to memorize Red Hat's quirks
when standard Unix syntax works.

0 new messages