[Samba] [samba] SMB encryption

Miguel Medalha medalist at sapo.pt
Fri Jun 3 16:52:17 UTC 2016

>> A - I thought badlock mitigation was about encrypting SMB traffic, at least most part of it.
>> And this encryption of most part of data transfer could (or should) lower performances.

>> It seems I was wrong: smallest part (something like commands) are encrypted but not SMB traffic (ie file transfer). 
>> This for SMB protocol prior to SMB3 (which comes with windows 8).

>> B - According to what I read, new options added into smb.conf with Samba versions meant to solve Badlock 
>> issue are enough by default to solve the issue.

If I understood you correctly, your questions are answered here:


"It is recommended that administrators set these additional options, if compatible with their network environment:

 server signing = mandatory
 ntlm auth = no

Without "server signing = mandatory", man in the Middle attacks are still possible against our file server and classic/NT4-like/Samba3 Domain controller. (It is now enforced on Samba's AD DC.) Note that this has heavy impact on the file server performance, so you need to decide between performance and security. (...)"

And here:



   Due to a regression introduced in Samba 4.0.0,
   an explicit "server signing = mandatory" in the [global] section
   of the smb.conf was not enforced for clients using the SMB1 protocol.

   As a result it does not enforce smb signing and allows man in the middle attacks.

   This problem applies to all possible server roles:
   standalone server, member server, classic primary domain controller,
   classic backup domain controller and active directory domain controller.


   Note that the default for server roles other than active directory domain
   controller, is "off" because of performance reasons."

Please note this last paragraph: the default for "server signing" is "off" for server roles other than active directory domain controller, for performance reasons.

If the AD DC is also operating as a file server, you will see a significant impact on file transfer speed. I was bitten by this issue after updating to Samba 4.4.2 to address the Badlock problem: I had a machine serving both roles and the sequential transfer rates to/from Windows 7 clients dropped from more than 100MB/s to just above 60MB/s maximum. I had to separate the roles and offload the AD DC function to another server because of this.

More information about the samba mailing list