Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2007 06:11:53 GMT
From:      Jonathan Liu<Net147@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/108742: [w] IPv6 addresses truncated to maximum IPv4 address length
Message-ID:  <200702040611.l146Brfc003978@www.freebsd.org>
Resent-Message-ID: <200702040620.l146KDOg092452@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         108742
>Category:       bin
>Synopsis:       [w] IPv6 addresses truncated to maximum IPv4 address length
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 04 06:20:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Liu
>Release:        6.2-RELEASE
>Organization:
>Environment:
FreeBSD freebsd 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
When a remote user logs into a FreeBSD machine using IPv6 with either ssh or telnet, typing the "w" command shows the remote user's IPv6 address truncated to the maximum IPv4 address length (16 characters).

This makes it very difficult to track down the user's IPv6 address if the address is longer than 16 characters in IPv6 shorthand form.

For example, the IPv6 address fd00:0:100::5:123 would be truncated to fd00:0:100::5:12.

Example output:
testuser           ttyp1     4 Feb 16:39 (fd00:0:100::5:12)
>How-To-Repeat:
On FreeBSD machine:
ifconfig lnc0 inet6 fd00:0:100::5:1
echo 'sshd_enable="YES"'>>/etc/rc.conf
/etc/rc.d/sshd start

On remote machine (FreeBSD):
ifconfig lnc0 inet6 fd00:0:100::5:123
ssh myusername@fd00:0:100::5:1

Then, back on FreeBSD machine:
w
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702040611.l146Brfc003978>