Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Promiscuous mode




On Sep 12, 2005, at 12:09 , Guy Meyer wrote:

How do you turn on promiscuous mode from the command line for an ethernet device (if possible).

It's possible (tcpdump does it). AFAIK, there is no command to do just this (and, if you have multiple interfaces active, and forwarding enabled [e.g., if you are "sharing" an internet connection]), then you should be very careful if you do this (you will place duplicate packets on networks attached to the interface).


If you want to experiment, you can do something like "tcpdump src no- such-address". Then tcpdump will sit quietly, and the interface will be in promiscuous mode (you can verify this with ifconfig). The kernel will do a bit of work verifying that no packet matches the request, but it's not onerous.

Cf. the code for libpcap, which implements this capability, as used by tcpdump.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
It's not whether you win or lose...
It's whether *I* win or lose.
--------


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Promiscuous mode (From: Guy Meyer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.