Difference between revisions of "Wsdd"
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
{{Languages}} | {{Languages}} | ||
===Maintainer=== | ===Maintainer=== | ||
− | [mailto:jcrisp@safeandsoundit.co.uk [[User:ReetP| | + | [mailto:jcrisp@safeandsoundit.co.uk][[User:ReetP|John C.]] from [https://www.reetspetit.com/] |
− | === Version === | + | ===Version=== |
{{#smeversion: smeserver-wsdd }} | {{#smeversion: smeserver-wsdd }} | ||
− | === Description === | + | ===Description=== |
wsdd implements a Web Service Discovery host daemon. This enables (Samba) hosts, like your local server device, to be found by Web Service Discovery Clients like Windows. | wsdd implements a Web Service Discovery host daemon. This enables (Samba) hosts, like your local server device, to be found by Web Service Discovery Clients like Windows. | ||
Line 25: | Line 22: | ||
===Installation=== | ===Installation=== | ||
− | + | yum install smeserver-wsdd --enablerepo=smecontribs | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | yum install smeserver-wsdd --enablerepo = | ||
signal-event post-upgrade; signal-event reboot | signal-event post-upgrade; signal-event reboot | ||
− | The rpm now does systemctl enable wsdd | + | The rpm now does a # systemctl enable wsdd |
systemctl status wsdd.service | systemctl status wsdd.service | ||
Line 68: | Line 50: | ||
status=enabled | status=enabled | ||
− | + | config setprop wsdd status enabled/disabled | |
Line 79: | Line 61: | ||
systemctl disable wsdd | systemctl disable wsdd | ||
− | + | Templated unit file | |
− | |||
− | Templated unit file | ||
/usr/lib/systemd/system/wsdd.service | /usr/lib/systemd/system/wsdd.service | ||
Line 93: | Line 73: | ||
[Service] | [Service] | ||
Type=simple | Type=simple | ||
− | ExecStart=/usr/bin/wsdd 4 -i eth0 -w | + | ExecStart=/usr/bin/wsdd 4 -i eth0 -w workgroup --shortlog |
ExecStartPre=/bin/sleep 30 | ExecStartPre=/bin/sleep 30 | ||
# User=wsdd | # User=wsdd | ||
Line 134: | Line 114: | ||
{{#smechangelog: smeserver-wsdd}} | {{#smechangelog: smeserver-wsdd}} | ||
---- | ---- | ||
− | + | ||
[[Category:Contrib]] | [[Category:Contrib]] |
Latest revision as of 15:37, 24 September 2021
Maintainer
Version
Description
wsdd implements a Web Service Discovery host daemon. This enables (Samba) hosts, like your local server device, to be found by Web Service Discovery Clients like Windows.
It also implements the client side of the discovery protocol which allows to search for Windows machines and other devices implementing WSD. This mode of operation is called discovery mode.
Purpose
Since NetBIOS discovery is not supported by Windows anymore, wsdd makes hosts to appear in Windows again using the Web Service Discovery method. This is beneficial for devices running Samba, like NAS or file sharing servers on your local network. The discovery mode searches for other WSD servers in the local subnet.
Background
With Windows 10 version 1511, support for SMBv1 and thus NetBIOS device discovery was disabled by default. Depending on the actual edition, later versions of Windows starting from version 1709 ("Fall Creators Update") do not allow the installation of the SMBv1 client anymore. This causes hosts running Samba not to be listed in the Explorer's "Network (Neighborhood)" views. While there is no connectivity problem and Samba will still run fine, users might want to have their Samba hosts to be listed by Windows automatically.
You may ask: What about Samba itself, shouldn't this functionality be included in Samba!? Yes, maybe. However, using Samba as file sharing service is still possible even if the host running Samba is not listed in the Network Neighborhood. You can still connect using the host name (given that name resolution works) or IP address. So you can have network drives and use shared folders as well. In addition, there is a patch lurking around in the Samba bug tracker since 2015. So it may happen that this feature gets integrated into Samba at some time in the future.
Installation
yum install smeserver-wsdd --enablerepo=smecontribs
signal-event post-upgrade; signal-event reboot
The rpm now does a # systemctl enable wsdd
systemctl status wsdd.service
[root@sme10a5 ~]# systemctl status wsdd.service ● wsdd.service - Web Services Dynamic Discovery host daemon Loaded: loaded (/usr/lib/systemd/system/wsdd.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2020-11-28 23:53:59 AEDT; 8min ago Main PID: 2597 (python3) CGroup: /system.slice/wsdd.service └─2597 python3 /usr/bin/wsdd -4 -i eth0 -w sme-server -s
Nov 28 23:53:59 sme10a5.xxxx.xxxx.org systemd[1]: Started Web Services Dynamic Discovery host daemon.
Usage
config show wsdd
wsdd=service TCPPorts=3702,5357 UDPPort=3702 access=private status=enabled
config setprop wsdd status enabled/disabled
Stop/Start/Restart/Disable
systemctl status wsdd systemctl enable wsdd systemctl start wsdd systemctl restart wsdd systemctl disable wsdd
Templated unit file
/usr/lib/systemd/system/wsdd.service [Unit] Description=Web Services Dynamic Discovery host daemon After=network-online.target After=bootstrap-console.service Wants=network-online.target # Wants=smb.service [Service] Type=simple ExecStart=/usr/bin/wsdd 4 -i eth0 -w workgroup --shortlog ExecStartPre=/bin/sleep 30 # User=wsdd # Group=wsdd
Example Usage
handle traffic on eth0 only, but only with IPv6 addresses
wsdd -i eth0 -6
or
wsdd --interface eth0 --ipv6only
Known Issues
Security
wsdd does not implement any security feature, e.g. by using TLS for the http service. This is because wsdd's intended usage is within private, i.e. home, LANs. The Hello message contains the hosts transport address, i.e. the IP address which speeds up discovery (avoids Resolve message).
In order to increase the security, use the capabilities of the init system or consider the -u and -c options.
Using only IPv6
If wsdd is running on FreeBSD using IPv6 only, the host running wsdd may not be reliably discovered. The reason appears to be that Windows is not always able to connect to the HTTP service for unknown reasons. As a workaround, run wsdd with IPv4 only.
Usage with NATs
Do not use wssd on interfaces that are affected by NAT. According to the standard, the ResolveMatch messages emitted by wsdd, contain the IP address ("transport address" in standard parlance) of the interface(s) the application has been bound to into. When such messages are retrieved by a client (Windows hosts, e.g.) they are unlikely to be able to connect to the provided address which has been subject to NAT. To avoid this issue, use the -i/--interface option to bind wsdd to interfaces not affected by NAT.
Tunnel/Bridge Interface
If tunnel/bridge interfaces like those created by OpenVPN or Docker exist, they may interfere with wsdd if executed without providing an interface that it should bind to (so it binds to all). In such cases, the wsdd hosts appears after wsdd has been started but it disappears when an update of the Network view in Windows Explorer is forced, either by refreshing the view or by a reboot of the Windows machine. To solve this issue, the interface that is connected to the network on which the host should be announced needs to be specified with the -i/--interface option. This prevents the usage of the tunnel/bridge interfaces.
Background: Tunnel/bridge interfaces may cause Resolve requests from Windows hosts to be delivered to wsdd multiple times,´i.e. duplicates of such request are created. If wsdd receives such a request first from a tunnel/bridge it uses the transport address (IP address) of that interface and sends the response via unicast. Further duplicates are not processed due to the duplicate message detection which is based on message UUIDs. The Windows host which receives the response appears to detect a mismatch between the transport address in the ResolveMatch message (which is the tunnel/bridge address) and the IP of the sending host/interface (LAN IP, e.g.). Subsequently, the wsdd host is ignored by Windows.
Bugs
Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-wsdd component or use this link .
Below is an overview of the current issues for this contrib:
ID | Product | Version | Status | Summary |
---|---|---|---|---|
11385 | SME Contribs | 10alpha | CONFIRMED | improve masq template |
Changelog
Only released version in smecontrib are listed here.
2021/02/23 Jean-Philipe Pialasse 0.2-5.sme
- improve update event to restart service and expand all necessary elements [SME: 11209]
also add post-action for wsdd- move templated service file as dropin [SME: 11386]
- Fix masq template for iptables [SME: 11209]
- Fix systemd params - WantedBy [SME: 11209]
- Add in creatlinks stuff for systemd startup [SME: 11209]
2020/07/06 John Crisp 0.2-1.sme
- template unit file
- template masq file- systemctl enable after install