ubuntu:samba:smb_protocol_versions
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:samba:smb_protocol_versions [2019/12/08 19:07] – created peter | ubuntu:samba:smb_protocol_versions [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Samba - SMB Protocol Versions ====== | ====== Ubuntu - Samba - SMB Protocol Versions ====== | ||
+ | |||
+ | According to the [[https:// | ||
+ | |||
+ | SMB3 is the now the default dialect (SMB3.02/ | ||
+ | |||
+ | CIFS protocol (and other old dialects) can be selected (by specifying " | ||
+ | |||
+ | |||
+ | |||
+ | |vers=3.11|SMB3_11|Latest, | ||
+ | |vers=3.10|SMB3_10|Early Windows 10 technical preview.| | ||
+ | |vers=3.02|SMB3_02|Windows 8.1| | ||
+ | |vers=3.0|SMB3|Windows 8, Windows Server 2012. Mostly the same as SMB2_24| | ||
+ | |vers=2.24|SMB2_24|Windows 8 beta SMB2 version.| | ||
+ | |vers=2.22|SMB2_22|Early Windows 8 SMB2 version.| | ||
+ | |vers=2.1|SMB2_10|Windows 7, Windows Server 2008 R2. The default is SMB2 is selected.| | ||
+ | |vers=2.0|SMB2_02|Vista SP1, Windows Server 2008| | ||
+ | |vers=1.0|SMB1|NT1 i.e. Windows 95, NT 4.0| | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Specify with " | ||
+ | The newest, most secure dialect, SMB3.11 can also be requested (vers=3.1.1). | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Add the following lines to / | ||
+ | |||
+ | <WRAP todo> | ||
+ | TODO: Some of these may not work - so try different combinations. | ||
+ | </ | ||
+ | |||
+ | |||
+ | <file bash / | ||
+ | server min protocol = SMB2 | ||
+ | server max protocol = SMB3 | ||
+ | client min protocol = SMB2 | ||
+ | client max protocol = SMB3 | ||
+ | min protocol = SMB2 | ||
+ | max protocol = SMB3 | ||
+ | protocol = SMB2 | ||
+ | client ipc min protocol = SMB2 | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Configuration to enable SMBv2 ===== | ||
+ | |||
+ | Edit smb.conf file: | ||
+ | |||
+ | Find the [global] section and append the following line: | ||
+ | |||
+ | <file bash / | ||
+ | ... | ||
+ | [global] | ||
+ | ... | ||
+ | min protocol = SMB2 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | <WRAP alert> | ||
+ | WannaCry can spread via SMBv2 as well: | ||
+ | |||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | The following gives best options: | ||
+ | |||
+ | <file bash> | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Also this works well: | ||
+ | |||
+ | <file bash> | ||
+ | server min protocol = SMB2_10 | ||
+ | client max protocol = SMB3 | ||
+ | client min protocol = SMB2_10 | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Errors ===== | ||
+ | |||
+ | Server: | ||
+ | |||
+ | <code bash> | ||
+ | min protocol = SMB2 | ||
+ | </ | ||
+ | |||
+ | Client: | ||
+ | |||
+ | <code bash> | ||
+ | smbclient -U=username -N –command=”dir Directory/ | ||
+ | </ | ||
+ | |||
+ | Error: | ||
+ | |||
+ | <code bash> | ||
+ | protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE | ||
+ | </ | ||
+ | |||
+ | Try to Use: | ||
+ | |||
+ | <code bash> | ||
+ | protocol = SMB2 | ||
+ | </ | ||
ubuntu/samba/smb_protocol_versions.1575832022.txt.gz · Last modified: 2020/07/15 09:30 (external edit)