welche SMB Version wird genutzt unter Windows

Dies geht ab Windows 8 sehr leicht über die Power Shell mit dem Kommando

PS C:Windowssystem32> Get-SmbConnection -server freenas | fl

ServerName : freenas
ShareName : slave2
UserName : WIN-JDK3IGQ5U43test
Credential : WIN-JDK3IGQ5U43test
Dialect : 2.10
NumOpens : 1 slave WIN-JDK3IGQ5U43… WIN-JDK3IGQ5U43… 1.50 2

Wie man sieht wird hier schon Version 2.1 verwendet und ist auf dem Stand von Server 2008 R2

http://blogs.technet.com/b/josebda/archive/2013/10/02/windows-server-2012-r2-which-version-of-the-smb-protocol-smb-1-0-smb-2-0-smb-2-1-smb-3-0-or-smb-3-02-you-are-using.aspx

http://blogs.technet.com/b/josebda/archive/2010/10/26/what-version-of-smb2-am-i-using-on-my-windows-file-server.aspx

http://blog.backslasher.net/testing-actual-smb-version.html

 

Noch ein Hinweis, wer SMB 1.0 deinstallieren möchte von seinem Windows, sollte genau prüfen ob alle Geräte auf die zugegriffen werden, SMB 2.1 und höher sprechen. Sonst gibt es keinen Zugriff auf Geräte die nur 1.0 können, das sind sehr viele Geräte. Drucker,Scanner, NAS Geräte etc.

Samba4 smb 3.0

Samba4 ist ja jetzt schon seit längerem Verfügbar.
Mit Samba4 hat auch das SMB Protokoll 3.0 (2.2) Einzug gehalten. Es bietet viele Vorteile zum alten 1.1 und 2.1

Wie konfiguriere ich das SMB Protokoll in der SMB.conf Datei

max protocol = SMB3

Wie prüfe ich ob die Freigabe auch die Version 3 verwendet?

smbclient //server/freigabe -mSMB3

Kommt nun Windows XP daher, so wird SMB 1.1 verwendet, wird Windows 8 oder Server 2012 verwendet so wird SMB 3.0 verwendet.
SMB 3.0 ist noch nicht ganz fertig, denn aktuellen Stand gibt es hier

https://wiki.samba.org/index.php/Samba3/SMB2#Introduction

https://bbs.archlinux.org/viewtopic.php?id=166933

http://www.spin.de/forum/58800/-/16

client max protocol (G)

The value of the parameter (a string) is the highest protocol level that will be supported by the client.

Possible values are :

· CORE: Earliest version. No concept of user names.

· COREPLUS: Slight improvements on CORE for efficiency.

· LANMAN1: First modern version of the protocol. Long filename support.

· LANMAN2: Updates to Lanman1 protocol.

· NT1: Current up to date version of the protocol. Used by Windows NT. Known as CIFS.

· SMB2: Re-implementation of the SMB protocol. Used by Windows Vista and later versions of Windows. SMB2 has sub protocols available.

· SMB2_02: The earliest SMB2 version.

· SMB2_10: Windows 7 SMB2 version.

· SMB2_22: Early Windows 8 SMB2 version.

· SMB2_24: Windows 8 beta SMB2 version.

By default SMB2 selects the SMB2_10 variant.

· SMB3: The same as SMB2. Used by Windows 8. SMB3 has sub protocols available.

· SMB3_00: Windows 8 SMB3 version. (mostly the same as SMB2_24)

By default SMB3 selects the SMB3_00 variant.

Normally this option should not be set as the automatic negotiation phase in the SMB protocol takes care of choosing the appropriate protocol.

Default: client max protocol = SMB3

Example: client max protocol = LANMAN1

client min protocol (G)

This setting controls the minimum protocol version that the client will attempt to use.

Normally this option should not be set as the automatic negotiation phase in the SMB protocol takes care of choosing the appropriate protocol.

Default: client min protocol = CORE

Example: client min protocol = NT1