irontec / sngrep

Ncurses SIP Messages flow viewer
GNU General Public License v3.0
1.02k stars 187 forks source link

sngrep not opening in MacOS #483

Closed patrick330602 closed 7 months ago

patrick330602 commented 7 months ago

I installed it via Homebrew, and it tells me Couldn't open device any: ioctl(SIOCIFCREATE): Operation not permitted when I try to open it. Using MacOS Sonoma 14.4.1 (Intel machine).

Kaian commented 7 months ago

Hi,

You need the appropiate permissions to capture from a network device. Be sure your user is properly configured or you are using root user.

Also, the default device any may be special for Linux capturing and may or may not work in MacOS, you can try selecting the interface you want to capture with -d flag.

Opening pcap files does not require any permission and you should be able to do it as regular user if you want to test.

Regards