*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.