Closed Dalarialus closed 10 months ago
There are errors when sending UDP packets on enp2s0. Check your firewall for that interface and refer to the README for details on the appropriate settings.
I get this too even with the firewall software turned off entirely, and running WSDD as root temporarily (interactively in verbose mode). Is there a kernel option somewhere to permit multicast use perhaps?
I noticed with the same firewall (CSF+LFD) this works fine on Debian 11 but not Debian 10.
I get this too even with the firewall software turned off entirely, and running WSDD as root temporarily (interactively in verbose mode).
Does anything related appear in the journal or dmesg output?
Nothing of special interest really. Here's the syslog when restarting wsdd
:
Dec 14 09:28:29 example-hostname systemd[1]: wsdd.service: Succeeded.
Dec 14 09:28:29 example-hostname systemd[1]: Stopped Web Services Dynamic Discovery host daemon.
Dec 14 09:28:29 example-hostname systemd[1]: Started Web Services Dynamic Discovery host daemon.
Dec 14 09:28:29 example-hostname wsdd[6433]: 2021-12-14 09:28:29,735:wsdd WARNING(pid 6433): no interface given, using all interfaces
Dec 14 09:28:29 example-hostname wsdd[6433]: 2021-12-14 09:28:29,736:wsdd WARNING(pid 6433): Discovery enabled but no listen option provided. Falling back to port 5359
Dec 14 09:28:29 example-hostname wsdd[6433]: 2021-12-14 09:28:29,741:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:29 example-hostname wsdd[6433]: 2021-12-14 09:28:29,741:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:29 example-hostname wsdd[6433]: 2021-12-14 09:28:29,741:wsdd WARNING(pid 6433): cannot unset all_multicast: [Errno 92] Protocol not available
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,746:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,746:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,746:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,747:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,747:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,747:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,747:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,747:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,747:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,747:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,747:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,830:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
Dec 14 09:28:32 example-hostname wsdd[6433]: 2021-12-14 09:28:32,997:wsdd ERROR(pid 6433): error while sending packet on ens192: [Errno 1] Operation not permitted
dmesg
is just showing a subset of syslog.
Oh, cannot unset all_multicast
, that could be of interest. You've got this logged already here: https://github.com/christgau/wsdd/issues/60
Looks like a feature introduced to the Linux Kernel in version 4.20, which would explain why Debian 10 (running 4.9) has this problem but Debian 11 (running 5+) does not.
Looks like a feature introduced to the Linux Kernel in version 4.20, which would explain why Debian 10 (running 4.9) has this problem but Debian 11 (running 5+) does not.
Could be. Try to run wsdd with IPv4 only by using wsdd -4 ...
as suggested #60.
But otherwise make sure that there are no remaining rules left in the system when you turn off CSF+LFD. I am not familiar with that software, but low-level tools like ip[6]tables -L
or nft list ruleset
might reveal more...
Thanks for the suggestion. Unfortunately using -4
doesn't resolve the issue. ip[6]tables -L
reveals that there are no residual rules remaining after turning CSF+LFD off entirely.
I'm happy to accept that your program depends on a kernel feature from 4.20 though, and aren't going to lose sleep over certain hosts not being discoverable in the network view. Some of our colleagues use this but we also deploy a desktop shortcut for important shares as standard (until colleagues delete them of course), so this is really more of a high-tier nice to have.
This works brilliantly on Debian 11 hosts though, very much fulfils the tool's purpose. Thank you kindly for contributing this, and if its in line with your plans, would wish you well in having this accepted into standard distribution repositories.
Have a splendid day!
I'm happy to accept that your program depends on a kernel feature from 4.20 though, [...]
That's actually not the case. It works on older kernels as well without the error message ("permission denied") that we're discussing. What might also be the case is that the router or the switch that connects the machine does not allow IGMP membership requests. As a consequence messages to the multicast addresses are not allowed. But that's pure speculation, especially since it is not clear from the error message to which address the messages are actually sent.
[...] and aren't going to lose sleep over certain hosts not being discoverable in the network view
Totally understandable. I appreciate your feedback anyways.
Thank you kindly for contributing this
Thanks.
and if its in line with your plans, would wish you well in having this accepted into standard distribution repositories.
It would be great to see this as well. Some distros already included it - even in their official repos. There are efforts by some users in the community to provide a Debian package. An unofficial one already exists. Some users appear to have further interest to get it into the official repo. See #19 for the discussion. For me, it is currently out of scope to provide and especially maintain an official package for Debian, although it would be quite interesting to dig into that topic...
OP did bit come back for about three years. Meanwhile, wsdd has landed in official Debian/Ubuntu repos. So closing that issue.
Hello :) Sorry I forgot whether I needed to do anything further. As it happens the particular hosts running an older kernel are still running as they are. (Reliability!)
Great to hear wsdd has landed in official repositories though. Particularly with Microsoft deprecating their Computer Browser service this will certainly add value.
Hello! I've installed
wsdd
on my Ubuntu 20.04.2 server and seem to be having some issues. When the service is running, I'm seeing some errors. Any ideas what these could mean?Many Thanks!
Here is my
wsdd.service
:And here is my
/etc/wsdd.conf
: