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.
I am having issues with tcpdump in terminal
Asked Answered
You need to include code so we know what is causing the error, check here for some advice: stackoverflow.com/help/mcve –
Mandrel
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.
this is the answer, i.e.
sudo tcpdump
–
Ineffaceable Run sudo tcpdump
.
You have to run it as a root because of macos security.
© 2022 - 2024 — McMap. All rights reserved.