LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 02-11-2005, 01:45 PM   #1
hywaydave
Member
 
Registered: Dec 2004
Location: Omaha, NE
Distribution: RH9
Posts: 31

Rep: Reputation: 15
MAC address is shown on port scan


When I perform a portscan on my FreeBSD box using nmap on my linux box it comes back with the ports that are open along with the MAC address of the NIC.

When I portscan my linux box it doesn't return the MAC address. Is there something I need to configure on my BSD machine so that it does not report this? Or is this even necessary? Thanks.
 
Old 02-11-2005, 01:49 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
On the local network this is really not needed. You can get the MAC address for any box by just using the arp command. All you have to do is communicate with the machine in some way (nmap would work) and then use the arp command.
 
Old 02-11-2005, 03:17 PM   #3
hywaydave
Member
 
Registered: Dec 2004
Location: Omaha, NE
Distribution: RH9
Posts: 31

Original Poster
Rep: Reputation: 15
what I was wondering if it was not necessary to prevent this information from showing up when someone does a port scan from the internet. This is used as a web server.
 
Old 02-11-2005, 08:50 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Quote:
From the CVS commit list for nmap.
Added MAC address printing. If Nmap receives packet from a target machine which is on an Ethernet segment directly connected to the scanning machine, Nmap will print out the target MAC address. Nmap also now contains a database (derived from the official IEEE version) which it uses to determine the vendor name of the target ethernet interface.
This is not a characteristic of FreeBSD. It is a function of the version of nmap you have installed on Linux as compared to the one on FreeBSD (and/or their defaults). This is also obvious because ports do not return anything like a MAC address in their packets... so this isn't something you could configure on FreeBSD.

Further, when the computers are not on the same Ethernet as the scanning computer... this information is unavailable -- which is why nmap can't return it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
How to find IP address of a machine if I know their MAC Address dysenteryduke Linux - Networking 13 09-12-2005 10:21 AM
bridge port mac address fssengg Linux - Networking 3 05-30-2005 07:41 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration