I am having issues with tcpdump in terminal

ccramer picture ccramer · Dec 3, 2015 · Viewed 8.3k times · Source

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.

Answer

user862787 picture user862787 · Dec 3, 2015

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.