nmap, different result?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

nmap, different result?

Postby janpihlgren » Jun 12th, '13, 06:45

I still use Mageia 2.
I have had this question up earlear or almost the same question and thought that I have had a solution but now discover that I havn't.
When I use a couple of different Raspberry Pi, with no screen or keyboard, in my network I really need a solution to find the internet address from my desktop.
Earlier suggestions will not work. Som because the sugessted program does not exist in Mageia.

When running nmap as user it will only report router and the host that run nmap.
When running nmap as root it sometimes report expecte result. Somtimes report only router and host where running nmap. Sometimes the router, host and an other host at eth0 but not the other hosts wlan0.

When I run nmap at a Raspberry Pi as normal user it alwas show complete result.
Why that differens between the computers? Is there some security reason (which I can't discover or understand) in Mageia?
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: nmap, different result?

Postby tom_ » Jun 12th, '13, 14:23

janpihlgren wrote:When I run nmap at a Raspberry Pi as normal user it alwas show complete result.
Why that differens between the computers? Is there some security reason (which I can't discover or understand) in Mageia?


probably the difference is not in the computer but in the distro are you using in the RPI
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: nmap, different result?

Postby janpihlgren » Jun 12th, '13, 15:00

Why does I not get a complete answer in Mageia?
That's what I want and need.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: nmap, different result?

Postby djennings » Jun 13th, '13, 01:33

You need to tell us what parameters you are supplying to nmap.

Also if you are running a firewall on the RaspPi it may be hiding itself from nmap
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: nmap, different result?

Postby janpihlgren » Jun 13th, '13, 02:48

I run nmap as following:
nmap -sP 192.168.1.*

As I know there is no there is no firewall at Raspberry Pi.
If there was some firewall, why will it some times respond? At least with the wlan0 IP-address. And mostly no respond.
Some times there i impossible to use nmap as normal user, only as root.
My opinion is that the problem is at Mageia.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: nmap, different result?

Postby nigelc » Jun 13th, '13, 08:52

Hi,
This is from the nmap manpage:
Most of the scan types are only available to privileged users.. This
is because they send and receive raw packets,. which requires root
access on Unix systems.

It does not always work properly if you scan yourself.
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: nmap, different result?

Postby janpihlgren » Jun 13th, '13, 10:40

OK, I accept that. But why will it not work properly when runnig it as root? Report every hosts on the lokal net.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: nmap, different result?

Postby djennings » Jun 13th, '13, 14:34

Maybe I am missing something, but I do not see scan options of -sP listed in the nmap documentation.

For the various methods to discover hosts with nmap see
http://nmap.org/book/man-host-discovery.html
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: nmap, different result?

Postby oj » Jun 14th, '13, 18:17

Have you tried 192.168.1.0/24?
oj
 
Posts: 232
Joined: Aug 23rd, '12, 00:22

Re: nmap, different result?

Postby janpihlgren » Jun 15th, '13, 05:26

Yes, I tried it now and the result will be the same. does not detect other hosts exept the router.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest