RedHat 8.0 -- Telnet works to local host, but can't telnet from a remote machine

RedHat 8.0 -- Telnet works to local host, but can't telnet from a remote machine

Post by Mat » Thu, 28 Nov 2002 04:59:35



Installed RedHat 8.0 today on a generic clone PC.  We'll call it "New
Box"  Seems to be a security configuration issue -- here's the
details:

I can:
Telnet from "New Box" to anywhere
Telnet from "New Box" to it's own IP, using my own user account (let's
call myusername)
Telnet from "New Box" to it's loop back (127.0.0.1), using myusername
Ping "New Box"'s IP address from itself and any machine on our network
Ping any IP on our network from "New Box"

I can't
Telnet from "New Box" to it's own IP (or Loop back), using the root
account (and I know I have the right password -- I login to the box
currently using root)
Telnet from a Windows machine to "New Box"'s IP address
Telnet from a Red Hat 6.2 machine to "New Box"'s IP address
Telnet from a Red Hat 6.2 machine to it using the line, "telnet -l
myusername 192.168.7.198"

About the box:
IP Address of 192.168.7.198, assigned by a DHCP server.
Configuration was pretty much "factory defaults" of the install,
choose minimum firewall security.

Configuration Files:
/etc/xinetd.d/telnet:
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        disable = no
        flags           = REUSE
        socket_type     = stream        
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID

Quote:}

/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost

/etc/hosts.deny:
#
# hosts.deny    This file describes the names of the hosts which are
#               *not* allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In
particular
# you should know that NFS uses portmap!

/etc/hosts.allow:
#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
# Following two entries made by Matt 11/26:
in.telnetd:     192.168.7.
in.ftpd:        192.168.7.

 
 
 

RedHat 8.0 -- Telnet works to local host, but can't telnet from a remote machine

Post by Duncan Swa » Thu, 28 Nov 2002 05:15:47



Quote:> Installed RedHat 8.0 today on a generic clone PC.  We'll call it "New
> Box"  Seems to be a security configuration issue -- here's the
> details:

> I can:
> Telnet from "New Box" to anywhere
> Telnet from "New Box" to it's own IP, using my own user account (let's
> call myusername)
> Telnet from "New Box" to it's loop back (127.0.0.1), using myusername
> Ping "New Box"'s IP address from itself and any machine on our network
> Ping any IP on our network from "New Box"

> I can't
> Telnet from "New Box" to it's own IP (or Loop back), using the root
> account (and I know I have the right password -- I login to the box
> currently using root)
> Telnet from a Windows machine to "New Box"'s IP address
> Telnet from a Red Hat 6.2 machine to "New Box"'s IP address
> Telnet from a Red Hat 6.2 machine to it using the line, "telnet -l
> myusername 192.168.7.198"

> About the box:
> IP Address of 192.168.7.198, assigned by a DHCP server.
> Configuration was pretty much "factory defaults" of the install,
> choose minimum firewall security.

> Configuration Files:
> /etc/xinetd.d/telnet:
> # default: on
> # description: The telnet server serves telnet sessions; it uses \
> #  unencrypted username/password pairs for authentication.
> service telnet
> {
>    disable = no
>    flags           = REUSE
>    socket_type     = stream
>    wait            = no
>    user            = root
>    server          = /usr/sbin/in.telnetd
>    log_on_failure  += USERID
> }

> /etc/hosts:
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1          localhost.localdomain localhost

> /etc/hosts.deny:
> #
> # hosts.deny       This file describes the names of the hosts which are
> #          *not* allowed to use the local INET services, as decided
> #          by the '/usr/sbin/tcpd' server.
> #
> # The portmap line is redundant, but it is left to remind you that
> # the new secure portmap uses hosts.deny and hosts.allow.  In
> particular
> # you should know that NFS uses portmap!

> /etc/hosts.allow:
> #
> # hosts.allow      This file describes the names of the hosts which are
> #          allowed to use the local INET services, as decided
> #          by the '/usr/sbin/tcpd' server.
> #
> # Following two entries made by Matt 11/26:
> in.telnetd:        192.168.7.
> in.ftpd:   192.168.7.

For a start NEVER EVER romote login as root, it is in fact not possible
with most distributions as riduleously insecure. Su to root if u must.

 
 
 

RedHat 8.0 -- Telnet works to local host, but can't telnet from a remote machine

Post by Michael Heimin » Thu, 28 Nov 2002 06:18:12


[telnet problems]

Quote:> For a start NEVER EVER romote login as root, it is in fact not
> possible with most distributions as riduleously insecure. Su to root
> if u must.

Which is exactly the same, as the root password will travel unencrypted
over the wire. Use ssh, there is no reason for using any r* services or
telnet, if you have ssh/sshd running.

Michael Heiming
--
Remove +SIGNS, if you expect an answer

 
 
 

RedHat 8.0 -- Telnet works to local host, but can't telnet from a remote machine

Post by Timothy Murp » Thu, 28 Nov 2002 09:27:48



>> For a start NEVER EVER romote login as root, it is in fact not
>> possible with most distributions as riduleously insecure. Su to root
>> if u must.
>Which is exactly the same, as the root password will travel unencrypted
>over the wire. Use ssh, there is no reason for using any r* services or
>telnet, if you have ssh/sshd running.

I don't think telnetd is running on RH-8.0, anyway.

I also found the firewall (I'm pretty sure I chose the medium strength firewall)
did not allow me to ssh in to an RH-8.0 machine, to my surprise.
I must admit I don't understand "iptables -L"
since they put the RH-LOKKIT stuff in it,
but ssh in worked when I disabled iptables ("service iptables stop").

--
Timothy Murphy  

tel: 086-233 6090
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

 
 
 

RedHat 8.0 -- Telnet works to local host, but can't telnet from a remote machine

Post by Mat » Fri, 29 Nov 2002 01:12:04


Quote:> I also found the firewall (I'm pretty sure I chose the medium strength firewall)
> did not allow me to ssh in to an RH-8.0 machine, to my surprise.
> I must admit I don't understand "iptables -L"
> since they put the RH-LOKKIT stuff in it,
> but ssh in worked when I disabled iptables ("service iptables stop").

Thank You folks!

I checked, sshd was running, so I stopped the iptables and voila, I'm
in.

I'll have to look up if I should be running the iptables, and if so,
then at least I'll know that's what needs tweaking.

Matt

 
 
 

RedHat 8.0 -- Telnet works to local host, but can't telnet from a remote machine

Post by bens » Fri, 29 Nov 2002 01:45:24


[Wed, 27 Nov 2002 08:12:04 +0000] quoth Matt:

Quote:> I'll have to look up if I should be running the iptables, and if so,
> then at least I'll know that's what needs tweaking.

  I think most people would advise you to run iptables.
  Why not allow SSH access with iptables:
  iptables -I INPUT 1 -p tcp -d 0/0 --dport 22 -j ACCEPT
  B
 
 
 

RedHat 8.0 -- Telnet works to local host, but can't telnet from a remote machine

Post by Johnny Choqu » Sat, 30 Nov 2002 03:31:38


Quote:> I can't
> Telnet from "New Box" to it's own IP (or Loop back), using the root
> account (and I know I have the right password -- I login to the box
> currently using root)
> Telnet from a Windows machine to "New Box"'s IP address
> Telnet from a Red Hat 6.2 machine to "New Box"'s IP address
> Telnet from a Red Hat 6.2 machine to it using the line, "telnet -l
> myusername 192.168.7.198"

Run ntsysv command and enabled ftpd. Then run:

service xinetd restart

That's all

Johnny

 
 
 

1. Network Problems - Remote Ping successful / telnet local successful / telnet remote failed

im working with a small Linux System with network support on an local
network. A ping from a remote machine is successful. A local telnet
session is also successful. A telnet session from the remote machine
will fail.

I can see with ifconfig, if the ping from the remote machine is running,
the tx counter increases. If I try the remote telnet session, i can
watch incoming packets but no packet will transmitted.

With tcpdump i see the telnet connect request from the remote machine.
At next my machines sends an arp-request about the address of the remote
machine and the remote machine replies the correct information, but
nothing will happen.

My routing table has an entry for the network an for my own machine.

Has anybody an idea whats going wrong.

Thanks

Peter

2. LinuxPPC2000 Install problems

3. Remote Ping successful/telnet local successful/telnet remote failed

4. dosemu0.50pl1 on linux-1.1.1x problem

5. Local pop, ftp and telnet not working to local machine.

6. Any statistics avail on insider vs outsider?

7. No Telnet/FTP From Remote Network - Local Works Fine

8. SMC cannot start on Solaris 9

9. Can't telnet to local machine

10. Host names unmatched when using telnet or rlogin to local hosts

11. RedHat 5 'who' hangs in remote telnet

12. Can't telnet to local machine

13. nslookup works; telnet/ftp require IP #'s (can't process host names)