From owner-freebsd-net@FreeBSD.ORG Wed Dec 1 21:32:32 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B88BA1065670 for ; Wed, 1 Dec 2010 21:32:32 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 5703C8FC08 for ; Wed, 1 Dec 2010 21:32:32 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 98DEBE7158 for ; Wed, 1 Dec 2010 21:32:31 +0000 (GMT) Received: from core.draftnet (client-86-31-8-12.midd.adsl.virginmedia.com [86.31.8.12]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA for ; Wed, 1 Dec 2010 21:32:30 +0000 (GMT) Date: Wed, 1 Dec 2010 21:32:17 +0000 From: Bruce Cran To: freebsd-net@freebsd.org Message-ID: <20101201213217.19712470@core.draftnet> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: EHOSTUNREACH returned for refused IPv6 connection X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2010 21:32:32 -0000 It appears that the network stack on -CURRENT is returning EHOSTUNREACH instead of ECONNREFUSED when trying to connect to a closed port over IPv6. e.g.: > telnet www.kame.net 10000 Trying 203.178.141.194... telnet: connect to address 203.178.141.194: Connection refused Trying 2001:200:dff:fff1:216:3eff:feb1:44d7... telnet: connect to address 2001:200:dff:fff1:216:3eff:feb1:44d7: No route to host telnet: Unable to connect to remote host Though it works locally: > telnet localhost 10000 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused Trying ::1... telnet: connect to address ::1: Connection refused telnet: Unable to connect to remote host -- Bruce Cran