Operating System - Linux
1821051 Members
2575 Online
109631 Solutions
New Discussion юеВ

Redhat 8 Refusing Network Connections

 
SOLVED
Go to solution
Khalid A. Al-Tayaran
Valued Contributor

Redhat 8 Refusing Network Connections

Hi team,

I installed Linux RedHat 8 to use as an application server. But I am not able to access it using telnet. I found that the default security level is high and when I switch to Med. and enable telnet from security level in System Settings it returns back to high and refuses any connections to the machine. I can ping with no problems. Also, I have posted in a previous thread the same situation with Mandrake 9 and managed to get some answers that let me use telnet and Exceed with X windows from my Win2k system.

Hope to solve this one with you guys... Thanks,,,,
10 REPLIES 10
U.SivaKumar_2
Honored Contributor

Re: Redhat 8 Refusing Network Connections

Hi,

Run this command,

#ntsysv

enable xinetd and telnet in that menu. disable iptables and ipchains.

now

#service xinetd start

#iptables -F


try to telnet now . should work

regards,
U.SivaKumar



Innovations are made when conventions are broken
Khalid A. Al-Tayaran
Valued Contributor

Re: Redhat 8 Refusing Network Connections


Hi,

Thanks U.Siva

I accessed the same list (from ntsysv) through the GUI og GNOME. I disabled iptables and xinetd is laready enabled. ipchains dies not exist.

Still can't access machine.


Any further help ??
U.SivaKumar_2
Honored Contributor

Re: Redhat 8 Refusing Network Connections

dear khalid ,

you have to enable telnet also in the ntsysv menu.

after this better to restart.

Innovations are made when conventions are broken
Khalid A. Al-Tayaran
Valued Contributor

Re: Redhat 8 Refusing Network Connections


Hi,

Sorry, U.Siva. I did enable telnet and restart the machine. But still no changes.
U.SivaKumar_2
Honored Contributor

Re: Redhat 8 Refusing Network Connections

can u paste this command's output ?

#iptables -L

and also the contents of /etc/xinetd.d/telnet file .
there should not be a "disabled" string in that file.
Also check whether xinetd is listening in telnet port.
#lsof -i
regards,
U.SivaKumar
Innovations are made when conventions are broken
Khalid A. Al-Tayaran
Valued Contributor

Re: Redhat 8 Refusing Network Connections



Hi again,

Sorry could not post output from linux PC the internet connection failed. Using windows connection.

1- iptables -L

Chain INPUT (policy accept)
target prot opt source

repeated three times.


2- file telnet does not exist under /etc/xinetd.d/

3- lsof -i shows no telent listeners.....




U.SivaKumar_2
Honored Contributor

Re: Redhat 8 Refusing Network Connections

Hi,

create a file name telnet under /etc/xinetd.d directory with below contents.

service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

the owner should be root and permission should be -rw-r--r-- .

Now
#service xinetd restart

Hope your problem is solved.

regards,
U.SivaKumar

Innovations are made when conventions are broken
Khalid A. Al-Tayaran
Valued Contributor

Re: Redhat 8 Refusing Network Connections


Hi,


Sorry for the late reply....

I created the telnet file under /etc/xinetd.d/ an restarted the system but no change.

I notices in the service configuration GUI (GNOME Menu-> Server Settings-> Services) that telnet service is checked but when I select it a message displayed on the bottom of the window saying that I should enable xinetd. xinetd is already checked in the same list ???

Also, the list of services can be started/stopped and restarted with buttons except for the telnet service these buttons are disabled !!!???

One more thing: You have mentioned that file /etc/xinetd.d/telnet should have the entry:
usr/sbin/in.telnetd which does not exist in my system!!

Stuart Browne
Honored Contributor
Solution

Re: Redhat 8 Refusing Network Connections

You did a workstation install of RH8 didn't you?

The package 'telnet-server' is not installed. ("rpm -q telnet-server" will confirm this).

Install it from the CD's ("rpm -Uvh telnet-server*.rpm"), I think it's on the 2nd CD (don't have a copy of it here to confirm).

Once that's done, simply issue 'chkconfig telnet on' to make sure it's turned on (no need to restart the machien or anything else after that), and you should be able to telnet to the machine (assuming TCP wrappers and firewall stuff isn't denying it).

NOTE: You won't be able to telnet in as 'root', you'll have to go in as another user first.
One long-haired git at your service...
Khalid A. Al-Tayaran
Valued Contributor

Re: Redhat 8 Refusing Network Connections



Hi,


Yes, I found that I didn't install telnet. I was actually re-installing Linux due to a hardware problem, so I was re-installing fast and it seems I missed the server programs (telnet, dhcp,....etc.).
I installed telnet server then everything went O.K.

Special thanks to Stuart Browne.

also my thanks go to U.SivaKumar...

Thanks to all members of these forums,,,,,,, This is the the number one forum.