From owner-freebsd-questions@FreeBSD.ORG Thu Mar 26 02:51:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3A591065673 for ; Thu, 26 Mar 2009 02:51:22 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id B84DB8FC13 for ; Thu, 26 Mar 2009 02:51:22 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: by rv-out-0506.google.com with SMTP id l9so566104rvb.43 for ; Wed, 25 Mar 2009 19:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KeFmJQ6Ioj1LB8EfcOCyAdaF5tDACKzXM5TMClWuMvI=; b=RmRLj/JUou+/YUZsuuoXhXy5g3ggigk5uNrz1ltNEWuEc46wdxDqbw9y+rw7+7X8Ic JLU+YUgMlkuwg60FfNevBKLonZ0/VRv0ap/btT5I2i3qAASLUmRMFhcoaDfB2TicPa3p F92JrVOLwMvwaSeVRNB5Gs7qEXTPY0TOmIq8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KTcPYez1enQkFGYDg4msh9amttY3TmqlQx5XU9jIiICIyPrnUjEyjqkjtjB0fXu6L3 CwtLAHXq76n6m5QaptUZMNimnLXloTSzxuKhZuCbHjNUT7A7JZJnIhVf2+FDaQnfyHft klgDSrjYqZaTLKnr596EOHqT2ZHdsSjbst7rU= MIME-Version: 1.0 Received: by 10.141.2.18 with SMTP id e18mr167604rvi.140.1238035881799; Wed, 25 Mar 2009 19:51:21 -0700 (PDT) In-Reply-To: <49CAEAD3.60304@gmail.com> References: <49CAEAD3.60304@gmail.com> Date: Wed, 25 Mar 2009 19:51:21 -0700 Message-ID: <560f92640903251951t35d873f1ydea701c8e1b5cde0@mail.gmail.com> From: Nerius Landys To: jimmiejaz@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: nmap as user works, root doesn't X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2009 02:51:23 -0000 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 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 metric 0 mtu 1500 > options=8 > 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 ) > status: active > rl0: flags=8843 metric 0 mtu 1500 > options=8 > 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 metric 0 mtu 1500 > options=9 > 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 ) > status: active > lo0: flags=8049 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 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" >