Skip to content

Instantly share code, notes, and snippets.

@hbin
Forked from jbfriedrich/nsmb.conf
Created May 5, 2023 16:12
Show Gist options
  • Select an option

  • Save hbin/675258ff64a063db49783f2a91151eaa to your computer and use it in GitHub Desktop.

Select an option

Save hbin/675258ff64a063db49783f2a91151eaa to your computer and use it in GitHub Desktop.

Revisions

  1. @jbfriedrich jbfriedrich revised this gist Apr 29, 2021. 1 changed file with 11 additions and 4 deletions.
    15 changes: 11 additions & 4 deletions nsmb.conf
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,16 @@
    # /etc/nsmb.conf - macOS 11.2 - 2021-04-17
    # /etc/nsmb.conf - macOS 11.3 - 2021-04-29
    #------------------------------------------------------------------------------
    # SMB configuration for macOS 11.2 <-> Synology
    # SMB configuration for macOS 11.3 <-> Synology
    #------------------------------------------------------------------------------
    # Additional information:
    # -----------------------
    # https://support.apple.com/de-de/HT211927
    # https://support.apple.com/en-us/HT208209
    # https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
    # https://photographylife.com/afp-vs-nfs-vs-smb-performance
    # https://support.apple.com/de-de/HT212277
    #------------------------------------------------------------------------------
    [default]

    # Use NTFS streams if supported
    streams=yes

    @@ -33,4 +33,11 @@ protocol_vers_map=6
    port445=no_netbios

    # Turn off notifications
    notify_off=yes
    notify_off=yes

    # SMB Multichannel behavior
    # To disable multichannel support completely uncomment the next line
    # mc_on=no

    # Some Wi-Fi networks advertise faster speeds than the connected wired network.
    mc_prefer_wired=yes
  2. @jbfriedrich jbfriedrich revised this gist Apr 17, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion nsmb.conf
    Original file line number Diff line number Diff line change
    @@ -23,11 +23,14 @@ signing_required=no
    # Disable directory caching
    dir_cache_off=yes

    # Lock negotiation to SMB3 only
    # Lock negotiation to SMB2/3 only
    # 7 == 0111 SMB 1/2/3 should be enabled
    # 6 == 0110 SMB 2/3 should be enabled
    # 4 == 0100 SMB 3 should be enabled
    protocol_vers_map=6

    # No SMB1, so we disable NetBIOS
    port445=no_netbios

    # Turn off notifications
    notify_off=yes
  3. @jbfriedrich jbfriedrich revised this gist Apr 17, 2021. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions nsmb.conf
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,13 @@
    # /etc/nsmb.conf - macOS 10.13 - 2018-05-20
    # /etc/nsmb.conf - macOS 11.2 - 2021-04-17
    #------------------------------------------------------------------------------
    # More information:
    # SMB configuration for macOS 11.2 <-> Synology
    #------------------------------------------------------------------------------
    # Additional information:
    # -----------------------
    # https://support.apple.com/de-de/HT211927
    # https://support.apple.com/en-us/HT208209
    # https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
    # https://photographylife.com/afp-vs-nfs-vs-smb-performance
    #------------------------------------------------------------------------------
    [default]

    @@ -22,7 +27,7 @@ dir_cache_off=yes
    # 7 == 0111 SMB 1/2/3 should be enabled
    # 6 == 0110 SMB 2/3 should be enabled
    # 4 == 0100 SMB 3 should be enabled
    protocol_vers_map=4
    protocol_vers_map=6

    # Turn off notifications
    notify_off=yes
  4. @jbfriedrich jbfriedrich revised this gist May 20, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nsmb.conf
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    #------------------------------------------------------------------------------
    [default]

    # Use NTF streams if supported
    # Use NTFS streams if supported
    streams=yes

    # Soft mount by default
  5. @jbfriedrich jbfriedrich created this gist May 20, 2018.
    28 changes: 28 additions & 0 deletions nsmb.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    # /etc/nsmb.conf - macOS 10.13 - 2018-05-20
    #------------------------------------------------------------------------------
    # More information:
    # https://support.apple.com/en-us/HT208209
    # https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
    #------------------------------------------------------------------------------
    [default]

    # Use NTF streams if supported
    streams=yes

    # Soft mount by default
    soft=yes

    # Disable signing due to macOS bug
    signing_required=no

    # Disable directory caching
    dir_cache_off=yes

    # Lock negotiation to SMB3 only
    # 7 == 0111 SMB 1/2/3 should be enabled
    # 6 == 0110 SMB 2/3 should be enabled
    # 4 == 0100 SMB 3 should be enabled
    protocol_vers_map=4

    # Turn off notifications
    notify_off=yes