Encryption support in SMB

SMB supports end-to-end encryption to protect data in transit between clients and servers, helping ensure secure data transmission and access control.

When integrating Ceph with SMB, encryption support is enabled on the server at the protocol level for SMB 3.x versions, which include AES-based encryption algorithms. Encryption helps guarantees that all SMB traffic, including file transfers, remains secure even when traversing untrusted networks.

Encryption in SMB is enabled by default and when the SMB client establishes a connection with an SMB server, it negotiates encryption capabilities during the SMB session setup. If encryption is required, all subsequent messages are automatically encrypted before transmission.

Table 1. Supported versions of encryption algorithms for SMB protocols
SMB protocol version Encryption algorithm
SMB 3.0 AES-128-CCM
SMB 3.0.2 AES-128-CCM
SMB 3.1.1 AES-128-CCM, AES-128-GCM, AES-256-GCM, AES-256-CCM
Important:
  • Setting per share encryption is not supported.
  • Enabling and disabling specific algorithms for SMB version 3.1.1 is not supported.