Re: nnamp question



On 8 Feb 2006, at 18:05, gahn wrote:

Thanks Tim:

well, the real interface is rl0...:) sorry for the
confusion.

the problem is that the nmap seems to have mind of its
own and stick with em0:

sis# nmap -e rl0 -v -sP 192.168.126.0/23

Starting Nmap 3.95 ( http://www.insecure.org/nmap/ )
at 2006-02-08 12:01 CST
getinterfaces: Failed to open ethernet interface (em0)
QUITTING!

It has 4 interfacres but nmap just sticks with em0. i
am lost ...

It could be that you're running out of BPF devices.

With recent versions of nmap, I needed to create 11
entries in /dev before I could get it to work.

The machine in question was FreeBSD 4.11 with 4
physical interfaces.

To check, run nmap through truss:

truss nmap -e rl0 -sP 192.168.126.0/23

And look for something like:

open("/dev/bpf4",0x1,027757740460) ERR#16 'Device busy'
open("/dev/bpf5",0x1,027757740460) ERR#16 'Device busy'
open("/dev/bpf6",0x1,027757740460) ERR#2 'No such file or directory'

If you see that, then just add any BPF devices you
need:

cd /dev && sh ./MAKEDEV bpf6

Regards,
-Andy
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: nnamp question
    ... getinterfaces: Failed to open ethernet interface (em0) ... It has 4 interfacres but nmap just sticks with em0. ... Are you running nmap as root? ...
    (FreeBSD-Security)
  • RE: nnamp question
    ... -> is a "Ping Scan however, and this does not require root privilages... ... Which seems to indicate that nmap is being told to look for an interface ...
    (FreeBSD-Security)
  • nnamp question
    ... trying to force the nmap working only one interface. ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (FreeBSD-Security)
  • Re: crack traces in /var ?
    ... > no unnecessary service listening to the outside interface. ... You're going to want to run nmap from a foreign host to test yourself. ... ::': proud Debian admin and user ...
    (Debian-User)
  • em(4) interface freezing on 6.2
    ... I have got Dell PowerEdge 750 with on-board emnetwork cards and I ... The interface em0 stops forwarding traffic from time ... Resetting the interface with ifconfig down & up fixes the ... had about 10 interface freezes on em0 interface but none on em1. ...
    (freebsd-stable)