I am having issues with tcpdump in terminal
Asked Answered
V

2

11

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.

Verbosity answered 3/12, 2015 at 20:21 Comment(1)
You need to include code so we know what is causing the error, check here for some advice: stackoverflow.com/help/mcveMandrel
G
21

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.

Gossipy answered 3/12, 2015 at 21:1 Comment(1)
this is the answer, i.e. sudo tcpdumpIneffaceable
F
2

Run sudo tcpdump.

You have to run it as a root because of macos security.

Formalin answered 1/12, 2022 at 17:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.