terminalcompiler-errorstcpdumposx-yosemite

I am having issues with tcpdump in terminal


I always end up with this error message, "tcpdump: ioctl(SIOCIFCREATE): Operation not permitted" Any ideas to what I am doing wrong. I am running this on OS X Yosemite.


Solution

  • Any ideas to what I am doing wrong

    Not running tcpdump as root. On Yosemite and later, tcpdump captures on the "any" device by default, and setting up an "any" device requires root privileges - not just the ability to open the BPF devices.