ksmbd - CIFS/SMB/SMBv1/SMBv2/SMBv3/Samba
free alternative firmware for the DLink DNS-320/320L/321/323/325/327L
Brought to you by:
jcard
Dear Alt-F team, @jcard,
It is possible to improve the file transfer system?
Have you seen this project, and repos?
- https://github.com/cifsd-team
- https://github.com/cifsd-team/ksmbd
- https://github.com/cifsd-team/ksmbd-tools
It is included in LTS Kernel:
- 5.15.x
- 6.1.x
- 6.6.x
It is possible to look it?
I think it is better to use it, no?
Thanks in advance.
Current Alt-F uses kernel 4.4. I'm using 4.14 myself. Need to see if 5.15 fits the DNS-323/321 available flash space -- Alt-F runs directly from flash (8MB kernel+rootfs), not disk, so space is an issue.
Thanks
I have tried kernel 5.15.172 and it exceeds the flash capacity by 330KB, so nope
At the ksmbd README it's said that Linux Kernel 5.4 or later is necessary, so I tried 5.4.285, and it exceeds the flash capacity by 150KB. But if compiled for space saving instead of performance, it fits the available space (1 572 864 bytes). So, there is hope after all.
So do you know if the ksmbd README claim for kernel 5.4 is accurate? Or is it outdated? Knowing that in advance for sure may save me many work days...
Thanks
@jcard: It will realive a lot of D-Link NAS which have only unsecure SMBv1 compatibility, and have CVEs (D-Link has taken EOL products a long time ago).
You can request help on mailinglist and at other places too.
Thanks in advance.
Dear Alt-F team, @jcard,
An OpenWrt PR exists for D-Link DNS-325 here:
- https://github.com/openwrt/openwrt/pull/17924
There was an OpenWrt PR for D-Link DNS-320L here:
- https://github.com/openwrt/openwrt/pull/15433
For information: Recent Linux on the D-Link DNS-313:
(Last boot 2024-05-15 on kernel v6.6.30 with OpenWRT as rootfs)
- https://www.df.lth.se/~triad/krad/dlink-dns-313/
It is important to have a good new OS with perfect SMB version support etc.
Last edit: Neustradamus 2025-02-23