Repository navigation
Description
I am using
6.19.12-1-default
"openSUSE Tumbleweed"
libpcap1 Version : 1.10.6-1.3
I downloaded the rpm and attempted to install the Sniffnet_LinuxRPM_x86_64.rpm with "discover" which noted the download was not complete.
I again downloaded the rpm (17,3 MiB) and tried to install the Sniffnet_LinuxRPM_x86_64.rpm with YAST-Software, which also reported a problem but offered an ignore button, and the installation succeeded.
I was able to start the application Sniffnet, upon choosing the network adapter and pressing start I received the error:
"libpcap error: Attempt to create packet socket failed - CAP_NET_RAW may be required"
I concluded that I didn't have the needed privileges so I ran:
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/sniffnet
Which resulted in the error "sudo: setcap: not found"
My last ditch to obtain the needed privileges was to start from the command line with:
sudo /usr/bin/sniffnet
╭────────────────────────────────────────────────────────────────────╮
│ │
│ Sniffnet 1.5.0 │
│ │
│ → Website: https://sniffnet.net │
│ → GitHub: https://github.com/GyulyVGC/sniffnet │
│ │
╰────────────────────────────────────────────────────────────────────╯
thread 'main' (8734) panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iced_winit-0.14.0/src/lib.rs:81:10:
Create event loop: Os(OsError { line: 765, file: "/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.13/src/platform_impl/linux/mod.rs", error: Misc("neither WAYLAND_DISPLAY nor WAYLAND_SOCKET nor DISPLAY is set.") })
Activity
GyulyVGC commentedon Apr 17, 2026
Hey @effend not sure why it's crashing with sudo, but the easy fix in this case would be to figure out how to insall setcap in your system, that is also why the installation is failing: because Sniffnet pre-install script is trying to do that setcap command automatically.
After a rapid search it seems like the setcap is obtained on OpenSUSE by installing libcap-progs, please verify and retry setting capabilities after you install setcap
effend commentedon Apr 17, 2026
Hey [GyulyVGC]
You nailed it. I ran the commands:
sudo zypper install libcap-progs
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/sniffnet
And everything went smooth. Thanks for your swift and precise help.
Regards Helmut
GyulyVGC commentedon Apr 17, 2026
Amazing, glad it worked at the first attempt 🎉