Resource icon

How to kill off SMB1, NetBIOS, WINS and *still* have Windows' Network Neighbourhood better than ever

Tigersharke

BOfH in User's clothing
Administrator
Moderator
Joined
May 18, 2016
Messages
890
A highly related topic: WINS provided support for multi-subnet networks. I've seen no discussion of this in the WS-Discovery context.

Has anyone addressed this? We need it!
Best chance for any new feature to be added or any old feature to be re-worked/improved is to submit a bug report ticket, although its not technically a bug, this is how devs will see the request. This is common to any project even if some also provide a forum for suggestions relating to the software itself.
 

Mrpete

Cadet
Joined
May 27, 2019
Messages
2
Best chance for any new feature to be added or any old feature to be re-worked/improved is to submit a bug report ticket, although its not technically a bug, this is how devs will see the request. This is common to any project even if some also provide a forum for suggestions relating to the software itself.
Having some sudden RealWorld challenges... will get to it ASAP, including results of my research...

(Offtopic quick Q on this forum SW: not obvious what SW you're running. It would help to have [sup] and [sub] bbcode support... I can research how if I knew what the SW is ;) )
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
I am not convinced that cross-subnet WSD discovery is a FreeNAS feature to be added, so much as it is a network setup question. Just like bonjour can be forwarded between subnets by bonjour-aware routers, WSDD could be forwarded between subnets.

And, that might require PIM and IGMP. Here’s an example of someone doing something very similar on a Juniper router in their home:
https://www.avsforum.com/forum/27-r...broadcasts-across-subnets.html#/topics/685492

If I feel ambitious I may see whether my FortiGate has the requisite routing protocols, and whether with multicast routing in place, WSDD queries from a PC on subnet A make it to FreeNAS on subnet B.

For me this is a curiosity. Those with a more pressing need may want to do some tinkering of their own.

Edited to add: One can, of course, simply do \\ip.of.freenas\ from the remote subnet, and as long as tcp/udp 445 is open, that works just fine.
 

Ian Carson

Explorer
Joined
Jul 5, 2016
Messages
55
Thanks heaps to everyone who has made the reappearance of UNIX Shares in the Network Neighborhood possible!! WSDD.py is brilliant

This issue has been nagging at me for several years.

Can I ask what the likely timeline for inclusion in FreeNAS? I did see talk of 11.2-U4 but I don't seem to be able to find it.

I have got this running semi automatically on both my NAS devices. Here's how...

Follow the instructions regarding NetBIOS, SMB and WINS from the original article referenced in the first post in this thread
Create /usr/local/bin/wsdd with the contents of the excellent module from christgau File here
chmod go+x wsdd
Modify the hashbang in the file to be #!/usr/local/bin python
Create a shell script somewhere mountable. I called mine wsdd.sh (not very original :))
Contents of the script:

Code:
#!/bin/sh

/usr/local/bin/wsdd -w <workgroup name> -i <preferred interface> &


if connected to a domain try this variation

Code:
#!/bin/sh

/usr/local/bin/wsdd -d <domain name> -i <preferred interface> &


(NB the inclusion of an ampersand at the end of the command)

Set up a Task as a script pointing to wsdd.sh. Run it PostInit.

Reboot FreeNAS

Windows Network explorer now shows FreeNAS Server+Shares
 
Last edited:

Tigersharke

BOfH in User's clothing
Administrator
Moderator
Joined
May 18, 2016
Messages
890
Thanks heaps to everyone who has made the reappearance of UNIX Shares in the Network Neighborhood possible!! WSDD.py is brilliant

This issue has been nagging at me for several years.

Can I ask what the likely timeline for inclusion in FreeNAS? I did see talk of 11.2-U4 but I don't seem to be able to find it.

I have got this running semi automatically on both my NAS devices. Here's how...

Follow the instructions regarding NetBIOS, SMB and WINS from the original article referenced in the first post in this thread
Create /usr/local/bin/wsdd with the contents of the excellent module from christgau File here
chmod go+x wsdd
Modify the hashbang in the file to be #!/usr/local/bin python
Create a shell script somewhere mountable. I called mine wsdd.sh (not very original :))
Contents of the script:

Code:
#!/bin/sh

/usr/local/bin/wsdd -w <workgroup name> -i <preferred interface> &


if connected to a domain try this variation

Code:
#!/bin/sh

/usr/local/bin/wsdd -d <domain name> -i <preferred interface> &


(NB the inclusion of an ampersand at the end of the command)

Set up a Task as a script pointing to wsdd.sh. Run it PostInit.

Reboot FreeNAS

Windows Network explorer now shows FreeNAS Server+Shares
I believe this post could be made into a resource. Perhaps it is worth looking into. :) I am not sure if there is a guide or guidelines on making a resource here but you might ask those members who have made quite a few for pointers. In my mind, any sort of 'How to' ought to have a place among the resources, and that a file download is involved is also facilitated with resource framework.
 

Ian Carson

Explorer
Joined
Jul 5, 2016
Messages
55
Just a quick FYI, I circled back around to this one and wsdd is in the nightlies and targeted for 11.3-Beta1.

Thanks for that. I'll keep an eye out for the update.
 

Ian Carson

Explorer
Joined
Jul 5, 2016
Messages
55
I believe this post could be made into a resource. Perhaps it is worth looking into. :) I am not sure if there is a guide or guidelines on making a resource here but you might ask those members who have made quite a few for pointers. In my mind, any sort of 'How to' ought to have a place among the resources, and that a file download is involved is also facilitated with resource framework.

I can't presume to push my modest solution to the exhaulted level of a "resource" by myself but if there's a community interest in my creating such a resource I'll happily put it together.

However, in light of Andos comment above it my be uneccessary?
 

Tigersharke

BOfH in User's clothing
Administrator
Moderator
Joined
May 18, 2016
Messages
890
I can't presume to push my modest solution to the exulted level of a "resource" by myself but if there's a community interest in my creating such a resource I'll happily put it together.

However, in light of Andos comment above it my be uneccessary?
Even if the first version is imperfect, over time it will improve as any of those other resource creators would tell you.

Since the technology will first be available in 11.3-Beta1, potentially not completed for 11.3 release, and the release version is still some perhaps months away, I would suggest that such a resource would be valuable until verified inclusion. One other reason a resource like it would be helpful is for those who do not or cannot upgrade, and also that such information could lead to other solutions directly or tangentially related or simply help with a problem-solving process.

thank you!
 

Ian Carson

Explorer
Joined
Jul 5, 2016
Messages
55
Even if the first version is imperfect, over time it will improve as any of those other resource creators would tell you.

Since the technology will first be available in 11.3-Beta1, potentially not completed for 11.3 release, and the release version is still some perhaps months away, I would suggest that such a resource would be valuable until verified inclusion. One other reason a resource like it would be helpful is for those who do not or cannot upgrade, and also that such information could lead to other solutions directly or tangentially related or simply help with a problem-solving process.

thank you!
Added a resource as suggested
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Startup scripts, oh my. @anodos’ parameter works, by the way. Just that and the file in the right location, nothing further needed.
 

Stilez

Guru
Joined
Apr 8, 2016
Messages
529
Joined
Jul 26, 2019
Messages
1
This is an OUTSTANDING article! This is the first comprehensive guide I've seen published on how to implement WSD and get rid of SMB1, Computer Browser, and NetBIOS. Well done!

I experienced one issue when I used your post to convert one Windows 7 and one Windows 10 machine to WSD Networking. Because I previously had to use SMB1 in order for the Computer Browser service to work, the entry for "DependOnService" for my Windows 7 machine at the LanmanWorkstation registry key looked like this:

HKEYLOCAL_MACHINE\SYSTEM\CurrenControlSet\Services\LanmanWorkstation
"DependOnService" = Bowser MRxSmb10 MRxSmb20 NSI

After I disabled SMB1 using the instructions in your post, WSD Networking didn't work. I discovered that the Workstation service would not start. On a hunch I removed the "MRxSmb10" from the value of "DependOnService" shown above and rebooted. Voila! WSD Networking immediately worked! The reason this worked is because the dependency of the LanmanWorkstation registry key on a disabled SMB1 service was removed from the value of the "DependOnService" DWORD. Because SMB1 had been disabled, and "MRxSmb10" was present in the "DependOnService" value, the Workstation service couldn't start because it believed it needed SMB1 in order to start.

I suspect this will trip up folks that don't realize that "MRxSmb10" has been added to the value of the "DependOnService" DWORD for the LanmanWorkstation key. Maybe this is something that should be added to your post?
 

catherineva11e

Dabbler
Joined
Jan 13, 2018
Messages
19
I'm a noob so bear with me.
OS: FN11.2u6 fresh install no customizations
Permission denied error messages.

I've created the wsdd files:
/usr/local/bin/wsdd.py
/mnt/Store/Scripts/wsdd.sh

and changed permissions for both files
# file: wsdd.*
# owner: root
# group: wheel
owner@:rwxp--aARWcCos:-------:allow
group@:rwxp--a-R-c--s:-------:allow
everyone@:rwxp--a-R-c--s:-------:allow

and checked mounts for noexec; none have it

I can execute via: python wsdd.py
but running it directly results in "Permission denied."

trying the script wsdd.sh gets me
sh wsddy.sh
wsdd.sh: /usr/local/bin/wsdd.py: Permission denied

bash -x wsddy.sh
+ /usr/local/bin/wsdd.py -i em0
wsdd.sh: /usr/local/bin/wsdd.py: /usr/local/bin: bad interpreter: Permission denied

source wsddy.sh
[1] 5815
/usr/local/bin/wsdd.py: Permission denied.

What am I missing, any ideas?
 

catherineva11e

Dabbler
Joined
Jan 13, 2018
Messages
19
Got it, the script wsdd.py had a bad #! it should have been
Code:
 #!/usr/local/bin/python
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
In 11.3 and 12.0, /usr/local/bin/wsdd.py is part of the standard install, and this aux parameter on SMB enables it: enable web service discovery=yes. Could you add a note to the resource to that effect?
 
Top