Date: Thu, 18 Jan 2001 20:43:48 -0500 (EST) From: Al <morewood@otterhole.yi.org> To: obrien@freebsd.org Cc: ports@freebsd.org, stable@freebsd.org Subject: FreeBSD port: nmap-5-32 under 4.2-STABLE, No route to host Message-ID: <200101190235.f0J2Zst00983@otterhole.yi.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101190235.f0J2Zst00983>
