Re: nmap as user works, root doesn't

2009-03-28 Thread Mel Flynn
On Thursday 26 March 2009 03:39:15 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!

Search google for pppoe+nnmap. Haven't seen a solution for this on any of my 
gateways, so I'm simply using a machine behind it to do my bidding.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: nmap as user works, root doesn't

2009-03-26 Thread Sergei Cherveni

> -Original Message-
> From: owner-freebsd-questi...@freebsd.org 
> [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Jimmie James
> Sent: Thursday, March 26, 2009 4:39 AM
> To: freebsd-questions@freebsd.org
> Subject: nmap as user works, root doesn't
> 
> 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!
> 

I had the same issue when run nmap inside the screen session. 

 --
 Sergei


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: nmap as user works, root doesn't

2009-03-25 Thread Nerius Landys
sorry about the top post.  wish i could go back and fix it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: nmap as user works, root doesn't

2009-03-25 Thread Nerius Landys
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  TYPEUP MAC
> fxp0 (fxp0)  192.168.2.100/24 ethernetup 00:11:D8:11:B7:4E
> rl0  (rl0)   172.16.0.1/24ethernetup 00:E0:29:51:C7:61
> xl0  (xl0)   10.10.10.2/24ethernetup 00:04:75:C7:27:DA
> lo0  (lo0)   127.0.0.1/8  loopbackup
> 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:
> DestinationGatewayFlagsRefs  Use  Netif Expire
> default64.230.197.58  UGS 0   832901   tun0
> 10.10.10.0/24  link#3 UC  00xl0
> 10.10.10.3 02:01:02:7b:3c:72  UHLW157249xl0   1004
> 64.230.197.58  76.71.17.226   UGH 12   tun0
> 127.0.0.1  127.0.0.1  UH  0  303lo0
> 172.16.0.0/24  link#2 UC  00rl0
> 172.16.0.255   ff:ff:ff:ff:ff:ff  UHLWb   1   18rl0
> 192.168.2.0/24 link#1 UC  00   fxp0
> 192.168.2.100:0b:23:9c:f9:0c  UHLW11   fxp0448
>
> #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 0xff00 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 0xff00 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 0xff00 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 0xff00
> tun0: flags=8051 metric 0 mtu 1492
>inet 76.71.17.226 --> 64.230.197.58 netmask 0xff00
>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-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


nmap as user works, root doesn't

2009-03-25 Thread Jimmie James

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  TYPEUP MAC
fxp0 (fxp0)  192.168.2.100/24 ethernetup 00:11:D8:11:B7:4E
rl0  (rl0)   172.16.0.1/24ethernetup 00:E0:29:51:C7:61
xl0  (xl0)   10.10.10.2/24ethernetup 00:04:75:C7:27:DA
lo0  (lo0)   127.0.0.1/8  loopbackup
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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default64.230.197.58  UGS 0   832901   tun0
10.10.10.0/24  link#3 UC  00xl0
10.10.10.3 02:01:02:7b:3c:72  UHLW157249xl0   1004
64.230.197.58  76.71.17.226   UGH 12   tun0
127.0.0.1  127.0.0.1  UH  0  303lo0
172.16.0.0/24  link#2 UC  00rl0
172.16.0.255   ff:ff:ff:ff:ff:ff  UHLWb   1   18rl0
192.168.2.0/24 link#1 UC  00   fxp0
192.168.2.100:0b:23:9c:f9:0c  UHLW11   fxp0448

#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 0xff00 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 0xff00 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 0xff00 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 0xff00
tun0: flags=8051 metric 0 mtu 1492
inet 76.71.17.226 --> 64.230.197.58 netmask 0xff00
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-unsubscr...@freebsd.org"