SMB versions in Mikrotik ROS

After I did not managed to successfully connect to SMB share on Mikrotik from windows7 by naturally written UNC address (e.g. \192.168.1.1) into the file browser, getting unspecified error in windows and following log records in ROS log:

11:04:24 smb,info connection from: 192.168.1.5 
11:04:24 smb,debug 192.168.1.5 dialect: NT LM 0.12 
11:04:24 smb,info closing connection with 192.168.1.5 
11:04:24 smb,info connection from: 192.168.1.5 
11:04:24 smb,debug 192.168.1.5 dialect: SMB 2.002 
11:04:24 smb,info closing connection with 192.168.1.5 
11:04:24 smb,info connection from: 192.168.1.5 
11:04:24 smb,debug 192.168.1.5 dialect: SMB 2.002 
11:04:28 smb,info closing connection with 192.168.1.5

I have checked the SMB manual http://wiki.mikrotik.com/wiki/Manual:IP/SMB that said that only SMB v.1.0 is supported:
“Note: RouterOS only supports SMB v1.0, so it will not work with SMB 2.0 systems, like MacOS 10.8”

Ok, clear. Even upgrading the SMB protocol to be able respond SMB2 or SMB3 requests would be nice, I have to find another way how to use SMB. Maybe somehow force the windows to use SMB1, if possible.

But anyway, is Mikrotik planning to implement SMB2 and SMB3 into some future version upgrade / update?

as you can see from response, RouterOS can speak SMB 2.002 dialect.

So now I am lost. Manual says no, you say yes and it does not work for me.

It seems that is a mistake in the Wiki, as SMB2 support was only included recently.

Wiki needs to get fixed…



SMB also needs to get fixed. There are some problems with it. My shares appear and dissappear without any reason. Also Windows says “folder name is invalid” for share that I accessed some time ago without a problem. RouterOS cuts one letter at the end of share name. I try to access share usb1 and it says that usb (without “1” at end) is invalid. Look at the screen below:
smb.jpg
I share folder: /usb1 as usb1:

[admin@dupa] /ip smb shares> export 
# jun/05/2014 20:23:17 by RouterOS 6.13
/ip smb shares
add directory=/ name=root
add directory=/usb1 name=usb1

what windows version you are running? with latest RouterOS?

Actually, this is not a problem with SMB itself, but with USB mount points appearing and disappearing, and not being assigned consistent names.

See this thread for more info, it will explain to you what is happening:
http://forum.mikrotik.com/t/mount-point-for-usb-storage-is-not-consistent/76897/1

So this presents itself as a SMB issue, but its actually an underlying USB port mounting problem.

I would not say that, at least in my case. I have to debug a bit when I have time for it.

Please check, would be interesting to know what is causing the problems in your case :slight_smile:

Windows 7 Enterprise SP1 x64
RouterOS 6.13

Not in my case. USB is mounted in /usb1, so this seams fine.

Today I changed share name to usb (now it is: share usb set to directory /usb1) and now I CAN open share \192.168.0.1\usb, but when I was mapping this share to drive letter I got this error (again with one letter cut at the end):
smb1.JPG
At the moment it works fine. I will keep an eye on it.

do, you cannot map network drive letter to samba share provided by RouterOS, but opened directly it works?

After changing share name I can map drive AND connect directly. At the moment it works fine. I will wait until it stops working again and post here.

Again, after reboot my share usb (set to /usb1) was inaccessible. I changed it’s name and now it works fine. So, this seams to happen after reboot. Tested on two RB2011UAS-2HnD.

For workaround, make one script than change name and revert back…

Good idea.

Thanks! :smiley: