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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-22-2010, 08:07 AM
|
#1
|
|
Member
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215
Rep:
|
Telnet IPv6 address
Hey I have a problem connecting to a IPv6 address via telnet on port 23.
Here is the some useful command output which describe my problem.
Code:
[root@station181 ~]# telnet 2001:db8:0:f101::1
Trying 2001:db8:0:f101::1...
telnet: connect to address 2001:db8:0:f101::1: Connection refused
telnet: Unable to connect to remote host: Connection refused
Code:
[root@station181 ~]# telnet 2001:db8:0:f101::1 80
Trying 2001:db8:0:f101::1...
Connected to stationip6 (2001:db8:0:f101::1).
Escape character is '^]'.
get
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>get to / not supported.<br />
</p>
<hr>
<address>Apache/2.0.52 (Red Hat) Server at localhost.localdomain Port 80</address>
</body></html>
Connection closed by foreign host.
Code:
[root@station181 ~]# nmap -6 2001:db8:0:f101::1
Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2010-07-23 04:43 IST
Interesting ports on stationip6 (2001:db8:0:f101::1):
(The 1657 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
Nmap run completed -- 1 IP address (1 host up) scanned in 0.286 seconds
Code:
[root@station181 ~]# nmap 192.168.1.181
Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2010-07-23 04:43 IST
Interesting ports on 192.168.1.181:
(The 1652 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
80/tcp open http
111/tcp open rpcbind
113/tcp open auth
199/tcp open smux
443/tcp open https
3306/tcp open mysql
Nmap run completed -- 1 IP address (1 host up) scanned in 0.617 seconds
Please assist me.
Thanks in advance,
|
|
|
|
07-22-2010, 08:11 AM
|
#2
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,476
|
Are 2001:db8:0:f101::1 and 192.168.1.181 the same machine or something?
If so, telnet just isn't listening on ipv6. Make it do that.
|
|
|
|
07-22-2010, 10:00 AM
|
#3
|
|
Member
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215
Original Poster
Rep:
|
Quote:
Originally Posted by AlucardZero
Are 2001:db8:0:f101::1 and 192.168.1.181 the same machine or something?
|
Yes. They are on the same machine.
Quote:
Originally Posted by AlucardZero
If so, telnet just isn't listening on ipv6. Make it do that.
|
This is for what exactly I made this post.
|
|
|
|
07-22-2010, 11:15 AM
|
#4
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 12,008
|
Quote:
Originally Posted by ashok.g
Yes. They are on the same machine.
This is for what exactly I made this post.
|
How about telling us what version/distro of Linux you're using??
And from your first post, telnet isn't showing up in nmap, so it's no surprise you can't connect to it. A Google search turns up lots:
Are you sure your telnet client can use IPv6? There's a program called telnet6 for a reason. Also, if you're going with IPv6, why bother with telnet, which is old, unsafe, and unused (mostly) these days. That's why SSH is usually used.
http://tldp.org/HOWTO/html_single/Linux+IPv6-HOWTO/
You may also need to add "flags = IPv6" in the service entry in /etc/xinetd.d.
|
|
|
|
07-26-2010, 01:26 AM
|
#5
|
|
Member
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
How about telling us what version/distro of Linux you're using??
|
I'm using RHEL AS 4.
Quote:
Originally Posted by TB0ne
And from your first post, telnet isn't showing up in nmap, so it's no surprise you can't connect to it. A Google search turns up lots:
Are you sure your telnet client can use IPv6?
|
I'm able to telnet to IPv6 addresses using all ports other than 23.
Quote:
Originally Posted by TB0ne
You may also need to add "flags = IPv6" in the service entry in /etc/xinetd.d.
|
In which file under /etc/xinetd.d. Is it telnet? I assumed it as telnet and edited the field. But no use.
|
|
|
|
11-21-2012, 09:28 AM
|
#6
|
|
LQ Newbie
Registered: Nov 2012
Posts: 2
Rep: 
|
My issue got resolved on Linux (release 2.6.18-128.el5) by randomly enabling telnet in one of the three files under /etc/xinetd.d/
telnet
krb5-telnet
ekrb5-telnet
Give a try !
|
|
|
|
11-21-2012, 09:31 AM
|
#7
|
|
LQ Newbie
Registered: Nov 2012
Posts: 2
Rep: 
|
contd to above post .....
This is how the file should look like
[user@host ~]# cat /etc/xinetd.d/krb5-telnet
# default: off
# description: The kerberized telnet server accepts normal telnet sessions, \
# but can also use Kerberos 5 authentication.
service telnet
{
flags = REUSE IPv6
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/telnetd
log_on_failure += USERID
disable = no
}
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:06 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
|
|