From owner-freebsd-current@FreeBSD.ORG Mon Oct 8 14:08:52 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6864616A420 for ; Mon, 8 Oct 2007 14:08:52 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 11D6913C474 for ; Mon, 8 Oct 2007 14:08:51 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1IetHt-0001VN-JR; Mon, 08 Oct 2007 16:08:49 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: =?iso-8859-1?Q?Angel_H=F6ngens?= In-reply-to: <000b01c7fc23$d6ee60f0$84cb22d0$@nl> References: <000b01c7fc23$d6ee60f0$84cb22d0$@nl> Comments: In-reply-to =?iso-8859-1?Q?Angel_H=F6ngens?= message dated "Fri, 21 Sep 2007 09:48:45 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Mon, 08 Oct 2007 16:08:49 +0200 From: Danny Braniss Message-ID: Cc: freebsd-current@freebsd.org Subject: Re: iscsi port in /etc/services? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2007 14:08:52 -0000 > Hey guys, my first post here, so don't shoot me. (Don't know if this is= =3Dthe > right place to come with the question) >=20 > I'm running RELENG_6 (built yesterday)m and after installing the > iscsi-target from ports, I found that I could not get it started.. I = =3Dgot > the error =22***ERROR*** getaddrinfo: servname not supported for =3Dai_= socktype=22, > which after googling for half an hour turns out to be a cryptic message= > meaning a service is not found in /etc/services. >=20 > After getting a later version of /etc/services, the iscsi-target would > start, but I was not able to connect using an initiator on another =3Dm= achine. > I then found out these ports in /etc/services: (apparently since rev = =3D1.112) >=20 > iscsi 860/tcp> iscsi 860/udp >=20 > While my initiator expected to see port 3260. After some more googling,= =3DI > found out port 860 is a port to be used ONLY when in need of a system = =3DTCP > port number (?) but by default, port 3260 must be used: >=20 > RFC3720 says: >=20 > The well-known user TCP port number for iSCSI connections assigned b= y > IANA is 3260 and this is the default iSCSI port. Implementations > needing a system TCP port number may use port 860, the port assigned= > by IANA as the iSCSI system port; however in order to use port 860, > it MUST be explicitly specified - implementations MUST NOT default t= o > use of port 860, as 3260 is the only allowed default. >=20 > Is this in error in /etc/services, or an error in my logic? >=20 >=20 > Kind regards, >=20 > Angelo H=F6ngens > The Netherlands. As far as I can tell, iscsi-target does NOT use /etc/services, it specifi= cally requests port 3260, unless it's changed by the the -p flag. So your problem is somewhere in the configuration file. danny PS: the nice thing about FreeBSD is that you have the sources, of course = that needs some basic computer language knowledge :-)