I had a functioning ksmbd in 24.10.0 and that does not work in 24.10.3.
Any pointers on how to debug this? Thanks.
I had a functioning ksmbd in 24.10.0 and that does not work in 24.10.3.
Any pointers on how to debug this? Thanks.
Even Windows makes client side logs when “it does not work”
Is it kdmbd or smb? How did you get from 24.10.0 to 24.10.3?
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
![]()
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
cat /etc/config/firewall
logread -e mbd
So much appreciate your response, despite so many other things in your plate.
Here are the details
root@OpenWrt:~# ubus call system board
{
"kernel": "6.6.104",
"hostname": "OpenWrt",
"system": "ARMv7 Processor rev 0 (v7l)",
"model": "Cisco Meraki MX65",
"board_name": "meraki,mx65",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.3",
"revision": "r28872-daca7c049b",
"target": "bcm53xx/generic",
"description": "OpenWrt 24.10.3 r28872-daca7c049b",
"builddate": "1758316778"
}
}
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdd1:c6ef:9cd5::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
list ports 'lan6'
list ports 'lan7'
list ports 'lan8'
list ports 'lan9'
list ports 'lan10'
list ports 'lan11'
list ports 'lan12'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'br-wan'
option type 'bridge'
list ports 'wan1'
list ports 'wan2'
config device
option name 'wan1'
option macaddr '<mac address>'
config device
option name 'wan2'
option macaddr '<mac address>'
config interface 'wan'
option device 'br-wan'
option proto 'dhcp'
config interface 'wan6'
option device 'br-wan'
option proto 'dhcpv6'
root@OpenWrt:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
root@OpenWrt:~# cat /etc/config/firewall
config defaults
option syn_flood 1
option input REJECT
option output ACCEPT
option forward REJECT
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 1
config zone
option name lan
list network 'lan'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
config zone
option name wan
list network 'wan'
list network 'wan6'
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1
config forwarding
option src lan
option dest wan
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option name Allow-DHCP-Renew
option src wan
option proto udp
option dest_port 68
option target ACCEPT
option family ipv4
# Allow IPv4 ping
config rule
option name Allow-Ping
option src wan
option proto icmp
option icmp_type echo-request
option family ipv4
option target ACCEPT
config rule
option name Allow-IGMP
option src wan
option proto igmp
option family ipv4
option target ACCEPT
# Allow DHCPv6 replies
# see https://github.com/openwrt/openwrt/issues/5066
config rule
option name Allow-DHCPv6
option src wan
option proto udp
option dest_port 546
option family ipv6
option target ACCEPT
config rule
option name Allow-MLD
option src wan
option proto icmp
option src_ip fe80::/10
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family ipv6
option target ACCEPT
# Allow essential incoming IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Input
option src wan
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
list icmp_type router-solicitation
list icmp_type neighbour-solicitation
list icmp_type router-advertisement
list icmp_type neighbour-advertisement
option limit 1000/sec
option family ipv6
option target ACCEPT
# Allow essential forwarded IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Forward
option src wan
option dest *
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
option limit 1000/sec
option family ipv6
option target ACCEPT
config rule
option name Allow-IPSec-ESP
option src wan
option dest lan
option proto esp
option target ACCEPT
config rule
option name Allow-ISAKMP
option src wan
option dest lan
option dest_port 500
option proto udp
option target ACCEPT
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
# option src lan
# option src_ip 192.168.45.2
# option dest wan
# option proto tcp
# option target REJECT
# block a specific mac on wan
#config rule
# option dest wan
# option src_mac 00:11:22:33:44:66
# option target REJECT
# block incoming ICMP traffic on a zone
#config rule
# option src lan
# option proto ICMP
# option target DROP
# port redirect port coming in on wan to lan
#config redirect
# option src wan
# option src_dport 80
# option dest lan
# option dest_ip 192.168.16.235
# option dest_port 80
# option proto tcp
# port redirect of remapped ssh port (22001) on wan
#config redirect
# option src wan
# option src_dport 22001
# option dest lan
# option dest_port 22
# option proto tcp
### FULL CONFIG SECTIONS
#config rule
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 80
# option dest wan
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
# option target REJECT
#config redirect
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 1024
# option src_dport 80
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
root@OpenWrt:~# logread -e mbd
Fri Sep 19 21:21:43 2025 daemon.info ksmbd: Legacy Protocols allowed, don't use this option for secure environments!
Fri Sep 19 21:21:43 2025 daemon.notice ksmbd: Stopping Ksmbd userspace service.
Fri Sep 19 21:21:43 2025 daemon.notice ksmbd: Starting Ksmbd userspace service.
root@OpenWrt:~#
I am using a Linux mint as a client.
The share is /mnt/sda1 (Using the 1gb flash of the device)
root@OpenWrt:~# cat /etc/config/ksmbd
config globals
option workgroup 'WORKGROUP'
option description 'Ksmbd on OpenWrt'
option allow_legacy_protocols '1'
config share
option name 'mnt'
option path '/mnt/sda1'
option read_only 'no'
option guest_ok 'yes'
option create_mask '0777'
option dir_mask '0777'
root@OpenWrt:~# ls -all /mnt/sda1
drwxrwxrwx 2 root root 160 Sep 19 21:22 .
drwxr-xr-x 1 root root 224 Sep 19 21:22 ..
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 9.0M 9.0M 0 100% /rom
tmpfs 1009.5M 296.0K 1009.3M 0% /tmp
/dev/ubi0_3 889.1M 64.0K 884.3M 0% /overlay
overlayfs:/overlay 889.1M 64.0K 884.3M 0% /
tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:~#
Would love to hear your suggestions.
Why You use samba on Linux? Why not NFS ??
How do you mount at Mint?
BTW.
After
root@C200P:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.0M 3.0M 0 100% /rom
tmpfs 121.0M 1.4M 119.6M 1% /tmp
/dev/mtdblock6 9.3M 2.2M 7.1M 24% /overlay
overlayfs:/overlay 9.3M 2.2M 7.1M 24% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 14.1G 28.0K 13.3G 0% /mnt/sda1
root@C200P:~#
So, You don’t have mounted your USB stick (drive).
Did you install mount block and usb-storage-uas (for usb3.0) ?
Yeah, sure your Mint supports SMB ?
I think, he didn’t mount the usb, so how can he mount smb share??
The share would exist anyway, if the /mnt/sda1 folder's there, I'd just be empty.
So maybe on openWRT first to do:
ls /mnt/sda1 if not exist:
then
mkdir /mnt/sda1
And mount to ksmb
But he did ls
I am using sda1 just as a directory. I could have named it /mnt/let_me_use_atleast_500mb_of_1gb_of_my_mx65
Before decommissioning this, I did have a functional USB on it and it used to work in 24.10.0
For the purpose of debugging, I thought why mount a USB. However, I will mount and post similar results in a moment.
I can share a directory without any external storage mounted. No?
My laptop is able to access other Openwrt devices with KSMBD fine.
The newifi-d2 is acting as a dumb access point and a tagged switch for lan and iot.
Yes. Even I wanted to tell you that's, you should to that.
So the problem is with ksmbd not with USB.
/etc/init.d/ksmbd status
what is showing? It is running? if not try
/etc/init.d/ksmbd enable
/etc/init.d/ksmbd start
/etc/init.d/ksmbd status
Its running:
Even with the usb drive its the same behavior.
I am downgrading to 24.10.1:
And, I kept the same config during downgrade and it worked.
I used this from custom firmware builder:
openwrt-24.10.1-71071df5536b-bcm53xx-generic-meraki_mx65-squashfs.sysupgrade.bin
So, I suspect that it broke during upgrade builds or there are some config changes imposed on ksmbd which are not known to me.
And, now it works even if I dont want to use USB but use abundant 1GB flash of MX65
Try after upgrade to 24.10.3 reconfig your ksmbd.
You can try uninstall ksmbd and replace it with samba just for tests.
You mean try luci-app-samba4?
Yes. Install full version samba. It take more space, but transfer are faster then ksmbd. (In my case on dir-2660).
Did you see:
check the ksmbd version.
In my case I have ksmbd-server 3.5.4-r1installed.
It is 3.5.3-r1 on mine. Thanks for sharing this thread. I beginning to find that this forum is awesome with such large number of topic specific threads. I will search better next time.