LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-22-2010, 08:07 AM   #1
ashok.g
Member
 
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215

Rep: Reputation: 32
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,
 
Old 07-22-2010, 08:11 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,626

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
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.
 
Old 07-22-2010, 10:00 AM   #3
ashok.g
Member
 
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by AlucardZero View Post
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 View Post
If so, telnet just isn't listening on ipv6. Make it do that.
This is for what exactly I made this post.
 
Old 07-22-2010, 11:15 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,419

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
Quote:
Originally Posted by ashok.g View Post
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.
 
Old 07-26-2010, 01:26 AM   #5
ashok.g
Member
 
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by TB0ne View Post
How about telling us what version/distro of Linux you're using??
I'm using RHEL AS 4.
Quote:
Originally Posted by TB0ne View Post
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 View Post
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.
 
Old 11-21-2012, 09:28 AM   #6
prasad.k
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Thumbs up

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 !
 
Old 11-21-2012, 09:31 AM   #7
prasad.k
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
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
}
 
  


Reply

Tags
ipv6, telnet


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnet on IPv6 srikanthrao_d Linux - Networking 1 01-21-2008 03:45 AM
Telnet works with IPv4 but not with IPv6 Hofe68 Linux - Networking 4 01-17-2008 03:14 AM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 01:25 PM
telnet - FAIL: telnet address from=15.8.29.14 gruell Linux - Software 1 06-28-2007 03:41 PM
Telnet asking for IPv6 DNS records (AAAA) Felix Finch Slackware 0 02-21-2004 04:45 PM


All times are GMT -5. The time now is 11:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration