RESOLUTIONS: Note below fix the problem for OSX13.0.1 and OSX13.1 for me. So please try below phase 01 to 04 resolutions and need to use a terminal with the below command.
COMMAND
---------
a. sudo -s
b. Put in the password
c. nano [TYPE BELOW PHASES PATH WITH BRACKET]
d. copy and paste the below phase text starting DEFAULT or MY CUSTOM FIREWALL...
e. Press control+O (^O WriteOut) O as Orange to save and control+X (^X Exit) to exit.
Phase 01:
PATH = /etc/nsmb.conf
SMB PROTOCOL UNDERSTANDING
7 SMB 1/2/3 enabled (default)
6 SMB 2/3 enabled
4 only SMB 3 enabled
2 only SMB 2 enabled
1 only SMB 1 enabled
FOR OSX 13.0.1 = NSMB.CONF INFO
----------------------------
[default]
signing_required=no
streams=yes
protocol_vers_map=7
minauth=ntlmv2
port445=both
FOR OSX 13.1 = NSMB.CONF INFO
----------------------------
[default]
protocol_vers_map=6
port445=both
Phase 02:
PATH = /etc/pf.conf
FIREWALL ALLOW CONNECTION = PF.CONF add in end of the file content.
-------------------------------------------------------------------
PART1:
# My Custom Firewall Rule
pass in proto tcp from any to any port 445
pass in proto udp from any to any port 445
PART2:
NOTE: macOS Ventura or later Steps to unblock all incoming connetions:
a. Open System Settings.
b. Click Network from the sidebar.
c. Click Firewall. If it says “Inactive,” it is turned off. When Firewall is disabled, your Mac does not monitor network traffic, and all incoming and outgoing traffic is allowed.
d. Click on it, and toggle the switch to on so that Firewall is enabled.
e. Then click Options.
f. Then turn off the “Block all incoming connections” switch.
g. You may need to click the lock icon or it will ask you to enter your password to take effect.
PART3:
NOTE: ONLY USE FOLLOW BELOW STEP IF WANT FIREWALL or JUST LEAVE IT OFF.
a. Open System Settings.
b. Click Network from the sidebar.
c. Click Firewall. If it says “Inactive,” it is turned off. When Firewall is disabled, your Mac does not monitor network traffic, and all incoming and outgoing traffic is allowed.
d. Click on it, and toggle the switch to on so that Firewall is enabled.
e. Then click Options.
f. Under list app click on the plus (+) button to add more apps or services and add below services.
Name: SMDB SERVICE
Path: /usr/sbin/smdb
Name: NETBIOS
Path: /usr/sbin/netbiosd
Name: LAUNCH DEMONEDS
Path: /sbin/launchd
g. Then use the drop down connections to “Allow incoming connections” for above app.
h. You may need to click the lock icon or it will ask you to enter your password to take effect.
Phase 03:
FULL DISK ACCESS
----------------------
• Using Finder, go to /usr/sbin
• Locate "smbd"
• Launch Settings
• Go to "Security & Privacy"
• Click the tab "Privacy"
• Click on "Full Disk Access"
• Drag and drop "smbd"
Phase 04:
REBOOT & VERIFY
----------------
Restart the computer and test.
===========================================
ADDITIONAL TROUBLESHOOT
1. Restart the Samba (SMB) IN TERMINAL
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist
2. Reset the LOCALKERBEROSREALM encrypted key.
Delete com.apple.smb.server.plist (you'll need to authenticate), then restart, com.apple.smb.server.plist gets created & properly populated without a Kerberos Realm. At following path = /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist
===========================================
Resources URL
- NSMB.CONF : https://www.manpagez.com/man/5/nsmb.conf/
- NSMB.CONF more INFO : https://www.truenas.com/community/threads/what-are-the-optimal-macos-settings.93986/
- RESOLUTIONS 3RD PARTY : https://apple.stackexchange.com/questions/362739/what-causes-some-network-drives-using-smb-no-longer-connect-to-macos-catalina
- FIREWALL 1 = https://macreports.com/what-does-block-all-incoming-connections-do/
- FIREWALL 2 = https://www.lifewire.com/open-a-port-on-a-routers-or-computers-firewall-5072435
- FIREWALL 3 = https://stackoverflow.com/questions/42752245/mac-osx-open-a-port
- TROUBLESHOOT SMB Restart = https://www.geekbitzone.com/posts/macos/smb/macos-restart-smb/
- SMB PROTOCOL UNDERSTANDING 1 = https://forums.macrumors.com/threads/smb-broken-with-monterey.2324371/
- SMB PROTOCOL UNDERSTANDING 2 = https://www.droidwin.com/smb-samba-not-working-in-macos-monterey-fix/
- RESET LOCALKERBEROSREALM encrypted = https://mjtsai.com/blog/2022/12/30/fixing-smb-file-sharing-in-ventura/