From owner-freebsd-stable Thu Jan 18 18:36:14 2001 Delivered-To: freebsd-stable@freebsd.org Received: from tomts6-srv.bellnexxia.net (smtp.bellnexxia.net [209.226.175.26]) by hub.freebsd.org (Postfix) with ESMTP id 3455E37B69F for ; Thu, 18 Jan 2001 18:35:56 -0800 (PST) Received: from otterhole.yi.org ([64.229.134.175]) by tomts6-srv.bellnexxia.net (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20010119023555.OBXS6201.tomts6-srv.bellnexxia.net@otterhole.yi.org> for ; Thu, 18 Jan 2001 21:35:55 -0500 Received: (from morewood@localhost) by otterhole.yi.org (8.11.1/8.9.3) id f0J2Zst00983 for stable@freebsd.org; Thu, 18 Jan 2001 21:35:54 -0500 (EST) (envelope-from morewood) From: Al Message-Id: <200101190235.f0J2Zst00983@otterhole.yi.org> Subject: FreeBSD port: nmap-5-32 under 4.2-STABLE, No route to host To: obrien@freebsd.org Date: Thu, 18 Jan 2001 20:43:48 -0500 (EST) Cc: ports@freebsd.org, stable@freebsd.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG When nmap is run against a remote network host, as root, it will consistently return the message: sendto in send_tcp_raw: sendto(3, packet, 40, 0, XXX.XX.XX.XX, 16) => No rout\ e to host But when run without root privileges, it works fine. (Therefore the routing table is fine... there is a default route. I tried adding a host specific route, it did not help). nmap will also work fine if run as root, but with a destination host on my local network. In order to get to a remote network, I must pass through my high speed Internet circuit, which uses PPPoE (ppp and Netgraph). (I do security consultant work, really!) This used to work fine, but since Dec 30 when I cvsup'd a new version of FreeBSD 4.2-stable (*default release=cvs tag=RELENG_4) it has stopped working. I ran another cvsup/build world Jan 18, 2001, and things still do not work correctly. One difference between a ktrace of root/no root is that the root version has this in the trace: 10128 nmap CALL open(0x8066f2c,0,0x1b6) 10128 nmap NAMI "/proc/net/route" 10128 nmap RET open -1 errno 2 No such file or directory But the non-root version has no /proc/net call. I do not see any reference to /proc/net/ anywhere. There does not seem to be much in the ktrace which relates to the call. 10128 nmap CALL socket(0x2,0x3,0xff) 10128 nmap RET socket 3 10128 nmap CALL setsockopt(0x3,0xffff,0x20,0xbfbfc55c,0x4) 10128 nmap RET setsockopt 0 [...] 10128 nmap CALL setsockopt(0x3,0,0x2,0xbfbfc378,0x4) 10128 nmap RET setsockopt 0 10128 nmap CALL sendto(0x3,0x8076080,0x28,0,0xbfbfc480,0x10) 10128 nmap RET sendto -1 errno 65 No route to host 10128 nmap CALL write(0x2,0xbfbfbbc8,0x56) 10128 nmap GIO fd 2 wrote 86 bytes "sendto in send_tcp_raw: sendto(3, packet, 40, 0, 206.47.73.74, 16) => No rout\ e to host" Any ideas what can be done to make this functionality work again? al To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message