- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Not able to accept telnet - RH9
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 12:58 PM
10-20-2003 12:58 PM
I have installed RH9 in pro-liant 1600 and the box is not accepting telnet coonection. Client that trying to connect got the following message:
Trying...
telnet: Unable to connect to remote host: Connection refused
I have also checked the following:
(1) ps -ef | grep xinetd
xinetd -stayalive ....
(2) Content of /etc/xinetd.d/telnet file:
service telnet
{
disbale = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
tag_no_failure +=USERID
}
Appreciate any advice,
YC
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 01:34 PM
10-20-2003 01:34 PM
Re: Not able to accept telnet - RH9
telnet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 01:42 PM
10-20-2003 01:42 PM
Re: Not able to accept telnet - RH9
netstat -a
Proto Recv-Q Send-Q Local Addr Foreign Addr
: : : : :
tcp 0 0 *:telnet *:*
State
:
LISTEN
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 01:53 PM
10-20-2003 01:53 PM
Re: Not able to accept telnet - RH9
that looks ok. Now, while you are logged in
at this box can you do a telnet 127.0.0.1 to the loopback device?
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 02:01 PM
10-20-2003 02:01 PM
Re: Not able to accept telnet - RH9
No problem with the following after login to the system:
(1) telnet 127.0.0.1
(2) ping 127.0.0.1
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 03:08 PM
10-20-2003 03:08 PM
Re: Not able to accept telnet - RH9
What are the contents of /etc/hosts.allow and /etc/hosts.deny ?
What does 'iptables -nL' report?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 03:24 PM
10-20-2003 03:24 PM
Re: Not able to accept telnet - RH9
No content inside /etc/hosts.allow and /etc/hosts.deny.
output of iptables -nL:
Chain INPUT (policy ACCEPT)
target prot opt source dest
RH-Lokkit-0-50-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source dest
RH-Lokkit-0-50-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source dest
Chain RH-Lokkit-0-50-INPUT (2 ref)
ACCEPT udp --
:
:
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0
:
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 03:27 PM
10-20-2003 03:27 PM
Re: Not able to accept telnet - RH9
The reject line at the bottom states that 'Unless otherwise accepted in one of the above rules, do not allow the connection'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 03:38 PM
10-20-2003 03:38 PM
Re: Not able to accept telnet - RH9
Here you go:
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Lokkit-0-50-INPUT (2 references)
target prot opt source destination
ACCEPT udp --
:65535
ACCEPT udp --
:65535
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:0:1023 flag
s:0x16/0x02 reject-with icmp-port-unreachable
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:2049 flags:0
x16/0x02 reject-with icmp-port-unreachable
REJECT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:2049 reject-
with icmp-port-unreachable
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:6000:6009 f
lags:0x16/0x02 reject-with icmp-port-unreachable
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:7100 flags:0
x16/0x02 reject-with icmp-port-unreachable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 04:53 PM
10-20-2003 04:53 PM
SolutionYou may as well use the 'lokkit' command, and customize it to allow 'telnet' in.
If you want to do it manually however, I guess the following command will suffice:
iptables -I INPUT -j ACCEPT -p tcp --dport 23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 07:53 AM
10-21-2003 07:53 AM
Re: Not able to accept telnet - RH9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 08:57 AM
10-21-2003 08:57 AM
Re: Not able to accept telnet - RH9
A quick test:
service iptables stop
# test telnet
service iptables start
# test telnet
Stuart's configuration change will work. I suggest assigning him 10 points.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com