From owner-freebsd-bugs Wed May 24 15:22:18 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id EE0A237B762 for ; Wed, 24 May 2000 15:22:13 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA99670; Wed, 24 May 2000 23:21:52 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA02358; Wed, 24 May 2000 23:21:44 +0100 (BST) (envelope-from brian@Awfulhak.org) Message-Id: <200005242221.XAA02358@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Michael Grant Cc: freebsd-bugs@FreeBSD.org, brian@hak.lan.Awfulhak.org Subject: Re: bin/9226: telnetd can log wrong IP address to utmp In-Reply-To: Message from Michael Grant of "Wed, 24 May 2000 10:20:02 PDT." <200005241720.KAA87874@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 24 May 2000 23:21:43 +0100 From: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > the -u option to telnetd doesn't seem to work, I still get hostnames in > utmp even when -u0 is used. > > I noticed that it passes the whole hostname to login with the -h > option. Why not add an option to login.conf to convert or leave the > hostname as an IP address, this way, it works for all things in general > rather than having to change rsh, telnet, and ssh? > > Perhaps a reason not to do this is that some dns trickery with the > reverse dns could spoof the user's real ip address. AFAICT this works properly on 3.4-stable and in -current. I can only guess that you may have updated the ip4 telnet service in inetd.conf and *not* the ip6 (default!) service.... This had me *very* confused for some time just now ! > -Mike -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message