ZyXEL NSA325v2 how to install new Samba (Entware-ng) and where to find it

13

All Replies

  • spin35
    spin35 Posts: 8 image  Freshman Member
    First Comment

    This is not good news that Win11 is not seeing the ZyXELSambaReplacement. I'm currently battling to get that working here in Australia, so its a bit disheartening to read that the purpose of all this may be futile.

    Have you checked that SMB2 is enabled on your Win11 machine? There are a range of PowerShell commands to set and inspect settings. Get-SmbServerConfiguration and look for EnableSMB2Protocol and see if its true/false.

    https://www.techbloat.com/how-to-enable-smb2-on-windows-11.html

    It may pay you to disable SMB1 in the Windows features so that SMB2 is the minimum protocol.

  • spin35
    spin35 Posts: 8 image  Freshman Member
    First Comment
    edited October 3
  • tonytogna
    tonytogna Posts: 16 image  Freshman Member
    First Comment Friend Collector

    Hello spin35, I had already tried with those commands, but it does not work; by the way, in my opinion the second part SMB2 is to enable Win11 to be a Smb2 server, not to enable Win11 to be a client of SMB2.

    I will make additional test, but I think it will be hard…

  • spin35
    spin35 Posts: 8 image  Freshman Member
    First Comment

    Just discovered that the Router I'm using to act as a temporary NAS is connected to Win10 using dialect 1.5 according the Get-SmbConnection, AND SO is my Medion NAS.

    The Router NAS is visible on my Win11 machine, but the Medion IS NOT. I conclude that Win11 does connect to SMB1 servers but some setting in our NAS's is preventing it. Or the Auditing features that the Sep KB5065426 introduced don't work with our NAS's - can disabling these features in windows fix this?

  • spin35
    spin35 Posts: 8 image  Freshman Member
    First Comment

    Looking at the .conf file it has a line setting max protocol = SMB2 but maybe we need to add a line to set min protocol = SMB2 as well. Currently smdb is using port 139 which is SMB1. We need to force samba to use port 445.

    https://4sysops.com/archives/smb-port-number-ports-445-139-138-and-137-explained/

  • spin35
    spin35 Posts: 8 image  Freshman Member
    First Comment

    I tried setting the .conf file to min protocol = SMB2 – didn't work
    smbd still used port 139 and the client reported that the server could not accept any more connections because it had reached its maximum number of allowable connections.

  • spin35
    spin35 Posts: 8 image  Freshman Member
    First Comment

    I've had a win. I noticed that smbd was only using port 139 which is effectively SMB1.
    I found a line in smb.conf [global] that said smb ports = 139, so I changed it to smb ports = 445, 139.
    I then stopped and started samba and found that my win11 machine can now connect to my NAS using dialect 2.0.2
    I had to disconnect the drives on my Win10 machine, then reconnect them to get them to use SMB2.

    The problem we face is that smb.conf will revert to its old form after reboot. I'm going to add a line to the ZyXelSambaReplacement.conf in the hope that it overrides the line in the smb.conf file.
    Otherwise we are going to have to copy in a modified version of smb.conf before we can run the Entware samba. This can probably go into the S09ZyXELSambaReplacement script in the startreplacement() section.

  • spin35
    spin35 Posts: 8 image  Freshman Member
    First Comment

    The /etc/samba/smb.conf line overrides the opt/etc/sambe/ZyXELSambaReplacement.conf line.
    I've put a modified copy of smb.conf in the same folder as ZyXEL…conf and modified the include line in the ZyXEL…conf to point to the modified smb.conf

    This means that any changes to smb.conf through the web interface will not be reflected in ZyXEL replacement, but my smb setup has not been changed for years so I don't see that as a big problem.

    At least now, I've got Win 11 to connect to my Medion NAS and that's a big win for me.

  • Mijzelf
    Mijzelf Posts: 2,980 image  Guru Member
    250 Answers 2500 Comments Friend Collector Eighth Anniversary

    Congratulations!

    The /etc/samba/smb.conf line overrides the opt/etc/sambe/ZyXELSambaReplacement.conf line.

    What if you put an extra 'Globals' section after the 'include /etc/samba/smb.conf'?

  • tonytogna
    tonytogna Posts: 16 image  Freshman Member
    First Comment Friend Collector

    Congrats spin35!

    As a matter of fact some days ago after my last post, i did manage to access the NAS from my Win 11 PC, even without changing the port, but then after rebooting i was no longer able to do it.

    After that I went over all the steps again on Win11, unsuccessfully.

    Today after several attempts, I went checking on the NAS with Tweak process monitor…. and I discovered that the processes of Samba are not running! Somehow I messed up the starting step, I think.

    May be it happened because before being able to see the NAS from Win11, I installed Tweaks with metarepository in order to check that SMB2 was running, and it was. And then the next day I rebooted the NAS.

    Could it be possible to mess around the starting procedure of Samba because of that?

    Please How can I forcefully run the Samba Replacement of Entware?

    Thanks

Consumer Product Help Center