Date: Wed, 25 Mar 2009 19:51:21 -0700 From: Nerius Landys <nlandys@gmail.com> To: jimmiejaz@gmail.com Cc: freebsd-questions@freebsd.org Subject: Re: nmap as user works, root doesn't Message-ID: <560f92640903251951t35d873f1ydea701c8e1b5cde0@mail.gmail.com> In-Reply-To: <49CAEAD3.60304@gmail.com> References: <49CAEAD3.60304@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Try compiling your kernel with bpf enabled. I had the same or at least a similar problem to what you're having and enabling device bpf in the kernel fixed the problem. On Wed, Mar 25, 2009 at 7:39 PM, Jimmie James <jimmiejaz@gmail.com> wrote: > Can anyone make sense of this? > Straight DSL connection, no router. > using -e [any interface] results in the same errors > > nmap-4.76 > > As root: > #nmap -v -v google.ca > > Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-25 22:35 EDT > Warning: Hostname google.ca resolves to 3 IPs. Using 64.233.161.104. > WARNING: Unable to find appropriate interface for system route to > 64.230.197.58 > nexthost: failed to determine route to 64.233.161.104 > QUITTING! > > As user: > ~>nmap -v -v google.ca > > Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-25 22:35 EDT > Warning: Hostname google.ca resolves to 3 IPs. Using 64.233.187.104. > Initiating Ping Scan at 22:35 > Scanning 64.233.187.104 [1 port] > Completed Ping Scan at 22:35, 0.08s elapsed (1 total hosts) > Initiating Parallel DNS resolution of 1 host. at 22:35 > Completed Parallel DNS resolution of 1 host. at 22:35, 0.06s elapsed > Initiating Connect Scan at 22:35 > Scanning jc-in-f104.google.com (64.233.187.104) [1000 ports] > > #nmap -iflist > > Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-25 22:35 EDT > ************************INTERFACES************************ > DEV (SHORT) IP/MASK TYPE UP MAC > fxp0 (fxp0) 192.168.2.100/24 ethernet up 00:11:D8:11:B7:4E > rl0 (rl0) 172.16.0.1/24 ethernet up 00:E0:29:51:C7:61 > xl0 (xl0) 10.10.10.2/24 ethernet up 00:04:75:C7:27:DA > lo0 (lo0) 127.0.0.1/8 loopback up > tun0 (tun0) 76.71.17.226/24 point2point up > > WARNING: Unable to find appropriate interface for system route to > 64.230.197.58 > **************************ROUTES************************** > DST/MASK DEV GATEWAY > 64.230.197.58/32 tun0 76.71.17.226 > 127.0.0.1/32 lo0 127.0.0.1 > > > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 64.230.197.58 UGS 0 832901 tun0 > 10.10.10.0/24 link#3 UC 0 0 xl0 > 10.10.10.3 02:01:02:7b:3c:72 UHLW 1 57249 xl0 1004 > 64.230.197.58 76.71.17.226 UGH 1 2 tun0 > 127.0.0.1 127.0.0.1 UH 0 303 lo0 > 172.16.0.0/24 link#2 UC 0 0 rl0 > 172.16.0.255 ff:ff:ff:ff:ff:ff UHLWb 1 18 rl0 > 192.168.2.0/24 link#1 UC 0 0 fxp0 > 192.168.2.1 00:0b:23:9c:f9:0c UHLW 1 1 fxp0 448 > > #ifconfig > fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > options=8<VLAN_MTU> > ether 00:11:d8:11:b7:4e > inet6 fe80::211:d8ff:fe11:b74e%fxp0 prefixlen 64 scopeid 0x1 > inet 192.168.2.100 netmask 0xffffff00 broadcast 192.168.2.255 > media: Ethernet autoselect (100baseTX <full-duplex>) > status: active > rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > options=8<VLAN_MTU> > ether 00:e0:29:51:c7:61 > inet6 fe80::2e0:29ff:fe51:c761%rl0 prefixlen 64 scopeid 0x2 > inet 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 > media: Ethernet autoselect (none) > status: no carrier > xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > options=9<RXCSUM,VLAN_MTU> > ether 00:04:75:c7:27:da > inet6 fe80::204:75ff:fec7:27da%xl0 prefixlen 64 scopeid 0x3 > inet 10.10.10.2 netmask 0xffffff00 broadcast 10.10.10.255 > media: Ethernet autoselect (100baseTX <full-duplex>) > status: active > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > inet 127.0.0.1 netmask 0xff000000 > tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492 > inet 76.71.17.226 --> 64.230.197.58 netmask 0xffffff00 > Opened by PID 13443 > > > -- > Over the years I've come to regard you as people I've met. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?560f92640903251951t35d873f1ydea701c8e1b5cde0>