Ask the Community
Groups
How Unitrends supports SMBv2 - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>There is a security_option for SMB2 available.</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p> </p> <p>An Unitrends system may be configured to use SMB1 or SMB2. <br><br>Beginning in <a href="https://kaseya.vanillacommunities.com/kb/articles/aliases/unitrends/UnitrendsBackup/s/article/000007029" rel="noopener nofollow">release 10.4.8</a>, the SMB 2.0 security option is enabled by default on Unitrends appliances.<br> </p> <ul><li><a rel="nofollow" href="#enable">Steps for enabling SMB2</a></li> <li><a rel="nofollow" href="#disable">Steps for disabling SMB2</a></li> <li><a rel="nofollow" href="#flr">Using SMB2 with file recovery from Windows VMs</a></li> <li><a rel="nofollow" href="#hyperv">Using SMB2 with Hyper-V Instant Recovery</a></li> <li><a rel="nofollow" href="#replicas">Using SMB2 with Windows Replicas on Hyper-V</a></li> <li> <a rel="nofollow" href="#sharepoint">Using SMB2 with Sharepoint</a> </li> <li><a rel="nofollow" href="#agentpush">Using SMB2 with Unitrends Agent Push</a></li> <li><a rel="nofollow" href="#windows_oracle">Using SMB2 with Oracle on Windows</a></li> <li><a rel="nofollow" href="#solaris_oracle">Using SMB2 with Oracle on Solaris</a></li> <li><a rel="nofollow" href="#rdp">Using SMB2 with Windows RDP sessions</a></li> <li><a rel="nofollow" href="#no_agent">Access the samba share without the Unitrends agent</a></li> </ul><h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p> </p> <h3 data-id="enabling-smb2"> <a name="enable" id="enable"></a>Enabling SMB2</h3> <ol><li>Navigate to Configure, select your Unitrends appliance then click Edit.</li> <li>Under the Advanced tab, select the Support Toolbox.</li> <li>Click the Samba SMB2 option button to enable SMB2.</li> </ol><div><img src="https://us.v-cdn.net/6032361/uploads/migrated/1CA8OPFVFCW9/eid-ka03r0000015b2j-feoid-00n40000003czqx-refid-0em3r000000yj8t." alt="User-added image" width="500" height="375" class="embedImage-img importedEmbed-img"></img></div> <p>Alternatively, SMB2 can be enabled from command line by issuing the following command:</p> <pre class="code codeBlock" spellcheck="false" tabindex="0">security_option smb2</pre> <p> </p> <h3 data-id="disabling-smb2"> <a name="disable" id="disable"></a>Disabling SMB2</h3> <p><br>To disable from SMB2 and enable SMB1, run the following commands:</p> <pre class="code codeBlock" spellcheck="false" tabindex="0">security_option smb1 </pre> <p>After disabling SMBv2, the Unitrends Samba Service must be restarted. From the screen seen above, select the samba on/off toggle to disable then re-enable samba. or, type the following command:</p> <p> </p> <pre class="code codeBlock" spellcheck="false" tabindex="0">systemctl restart smb.service</pre> <p><br><br></p> <h3 data-id="using-smb2-with-file-recovery-from-windows-vms"> <a name="flr" id="flr"></a>Using SMB2 with file recovery from Windows VMs</h3> <p><br>To use a CIFS share for the recovery, SMB 2.0 must be enabled on the target Windows asset. <br><br>Note: Backup appliance running a pre-10.4.8 release – If the appliance is configured to use SMB 2.0, the following must be enabled on the target Windows asset: Insecure Guest Login and SMB 2.0.<br> </p> <h3 data-id="hyper-v-instant-recovery"><strong><a name="hyperv" id="hyperv"></a>Hyper-V Instant Recovery</strong></h3> <p><br>To run a Windows replica on Hyper-V, SMB 2.0 must be enabled on the Hyper-V server.<br><br>Note: Backup appliance running a pre-10.4.8 release – If the appliance is configured to use SMB 2.0, the the following must be enabled on the Hyper-V server: Insecure Guest Login and SMB 2.0.</p> <p> </p> <h3 data-id="windows-replicas-created-on-a-hyper-v-host-server"> <strong><a name="replicas" id="replicas"></a>Windows Replicas </strong>created on a Hyper-V host server</h3> <p><br>Release with Unitrends release v.10.4.2, enables Windows Replicas to a Hyper-V host utilizing SMB2 following these steps:</p> <ol><li>On the Unitrends appliance, first disable smb1 then enable smb2 with the new 10.4.2 configuration:</li> </ol><div> <pre class="code codeBlock" spellcheck="false" tabindex="0">security_option smb1 security_option smb2</pre> </div> <ol start="2"><li>On the Hyper-V host, enable "Insecure Guest Logons" <ol start="1"><li>Open Local Group Policy Editor</li> <li>Navigate into Administrative Templates - Network - Lanman Workstation</li> <li>Enable the setting "Enable insecure guest logons"</li> </ol></li> </ol><p> </p> <h3 data-id="sharepoint"> <strong><a name="sharepoint" id="sharepoint"></a>SharePoint</strong> </h3> <p>To perform backup and recovery operations, SMB 2.0 must be enabled on each node in the farm.<br>Notes:</p> <ul><li>Backup appliances running pre-10.4.8 releases – If the appliance is configured to use SMB 2.0, the following must be enabled on each node in the farm: Insecure Guest Login and SMB 2.0.</li> <li>SharePoint 2007 on Windows 2003 and prior is not supported on SMB 2.0 appliances. (To configure your appliance to use SMB 1.0, contact Unitrends Support.)</li> <li>SharePoint may require custom client configuration for use with SMB 2.0. If SharePoint backups do not run successfully, see this Microsoft article for client configuration details: <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fblogs.msdn.microsoft.com%2Fuksharepoint%2F2009%2F01%2F05%2Fsharepoint-ports-proxies-and-protocols-an-overview-of-farm-communications%2F" rel="noopener nofollow">SharePoint Ports, Proxies and Protocols...An overview of farm communications</a>.</li> </ul><p> </p> <h3 data-id="agent-push"><strong><a name="agentpush" id="agentpush"></a>Agent Push</strong></h3> <p>To push install the Windows agent, SMB 2.0 must be enabled on the Windows asset.<br><br>Notes:</p> <ul><li>If SMB 2.0 is enabled on your Unitrends appliance, agent push is NOT supported for the following: Windows 2003 R2, Windows XP, Windows Vista. Agent push to these operating systems is supported on appliances where SMB 1.0 is enabled. (To configure your appliance to use SMB 1.0, contact Unitrends Support.)</li> <li>Backup appliance running a pre-10.4.8 release – If the appliance is configured to use SMB 2.0, the following must be enabled on the Windows asset: Insecure Guest Login and SMB 2.0.</li> </ul><p> </p> <h3 data-id="oracle-on-windows"><strong><a name="windows_oracle" id="windows_oracle"></a>Oracle on Windows</strong></h3> <p>SMB 2.0 must be enabled on the Windows server so that the Unitrends agent can access the appliance's SMB 2.0 Samba share when performing backup and recovery operations.<br><br>Note: If the backup appliance is running a pre-10.4.8 release and is configured to use the SMB 2.0, the following must be enabled on the Windows server: SMB 2.0 and Insecure Guest Login</p> <p> </p> <h3 data-id="windows-remote-desktop-sessions"><strong><a name="rdp" id="rdp"></a>Windows Remote Desktop sessions</strong></h3> <ol><li> <p>Log On and Log Off procedures are executed to provide secure credential management and access to SMB2 shares. When using a RDP session, it is recommended to Log Off at the conclusion of the session. If the RDP session is closed, the Log Off procedure does not execute. Subsequently, the following Log On procedure will not execute and SMB2 shares will not be accessible. </p> </li> <li> <p>To prevent unsuccessful log-off operations, the command below may be used to save user credentials. This action is required only once as long as the session is used at least once every 30 days.</p> </li> </ol><div> <pre class="code codeBlock" spellcheck="false" tabindex="0">cmdkey /add:<appliance_ip> /user:samba /pass:samba</pre> </div> <h3 data-id="n-a"> </h3> <h3 data-id="samba-share-access-from-windows-where-agent-is-not-install"><strong><a name="no_agent" id="no_agent"></a>Samba share access from Windows where Agent is not install</strong></h3> <p>To access the samba share from a Windows system where the Unitrends agent not already installed, run the following command. Use the IP address of your Unitends appliances instead of 'appliance_ip'.</p> <pre class="code codeBlock" spellcheck="false" tabindex="0">net use appliance_ip /user:samba /pass:samba</pre> <p> </p> <h3 data-id="oracle-on-solaris"><strong><a name="solaris_oracle" id="solaris_oracle"></a>Oracle on Solaris</strong></h3> <ul><li> <p>The Unitrends agent must have access to the appliance's SMB 2.0 Samba share to perform backup and recovery operations. These requirements apply:</p> </li> <li> <p>A Samba client must be enabled. See KB 1303 for details.</p> </li> <li> <p>A Samba key must be added for the backup appliance. To add the key, issue this command (the default password is samba):</p> </li> </ul><div> <pre class="code codeBlock" spellcheck="false" tabindex="0">smbadm add-key -u samba@<applianceIP> </pre> Example: <pre class="code codeBlock" spellcheck="false" tabindex="0">smbadm add-key -u root@192.168.111.22</pre> <div> <em>Where 192.168.111.22 is the UB IP address.</em> <br><br></div> <div> <p><br>*Mounting external CIFS shares with SMB2-only access from the Unitrends system is not yet supported via CentOS6 on the Unitrends system.</p> </div> </div> <h2 data-id="cause"><strong>CAUSE</strong></h2> <p>The introduction of <a href="https://kaseya.vanillacommunities.com/kb/articles/aliases/unitrends/hc/en-us/articles/360013199697?r=1&ui-knowledge-aloha-components-aura-components-knowledgeone.ArticleActions.handleEditPublished=1&q=SELECT+ArticleNumber%2CId%2CSummary%2CResolution__c%2CAttachment__Body__s%2CCause__c%2CNotes__c%2CAttachment__ContentType__s%2CAttachment__Length__s%2CAttachment__Name__s%2CTitle%2CKnowledgeArticleId%2CDescription__c+from+Article__kav+where+PublishStatus%3D%27Online%27" rel="noopener nofollow">WannaCry</a> illuminated a security flaw in the SMB1 protocol. While Microsoft security patches have been made available to Windows systems, many have chosen to upgrade their environment to use only the SMB2 protocol.<br><br>Furthermore, Microsoft is increasingly requiring their customers to configure environments with SMB1 disabled in favor of SMB2. <br><br>While Unitrends is not directly at risk, Unitrends supports both SMB1 and SMB2 environments.<br><br>Many customers will have already configured their Windows environment for SMB2-only before contacting Unitrends, but below is an article from Microsoft describing methods to disable SMB1 and enable SMB2 on various Windows systems. Usually the registry entries are the key component.<br><a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F2696547%2Fhow-to-detect-enable-and-disable-smbv1-smbv2-and-smbv3-in-windows-and" rel="noopener nofollow">https://support.microsoft.com/en-us/help/2696547/how-to-detect-enable-and-disable-smbv1-smbv2-and-smbv3-in-windows-and</a></p> </article> </main>