Date: Fri, 19 Jan 2001 17:37:55 +0200 (IST) From: Roman Shterenzon <roman@harmonic.co.il> To: Al <morewood@otterhole.yi.org> Cc: ports@FreeBSD.ORG, stable@FreeBSD.ORG Subject: Re: FreeBSD port: nmap-5-32 under 4.2-STABLE, No route to host Message-ID: <979918675.3a685f537a96b@webmail.harmonic.co.il> In-Reply-To: <200101190235.f0J2Zst00983@otterhole.yi.org> References: <200101190235.f0J2Zst00983@otterhole.yi.org>
next in thread | previous in thread | raw e-mail | index | archive | help
You're probably using a linux binary instead of native FreeBSD binary. Quoting Al <morewood@otterhole.yi.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 > --Roman Shterenzon, UNIX System Administrator and Consultant [ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?979918675.3a685f537a96b>