The GUFW app has 2 pre-configured Samba 'rules' (identical) that setup a ruleset for SMB1. Use a Simple Rule to set TCP on Port 445 for SMB 2/3 use.BitterTruth wrote: Wed Aug 27, 2025 7:04 pm@FullScale4Me Thank you for this very useful to know. I wasn't sure which ports to allow through UFW as I saw 139 mentioned as well, so allowed all traffic through from certain clients via their ips.FullScale4Me wrote: Wed Aug 27, 2025 4:27 pm What replaced NT1 was SMB2 and later SMB3. Both are faster (compressed data streams), more secure and (by design) more reliable due to using TCP only. Current implementations only use TCP port 445 with a teeny leak of whispers on UDP 137 if nmbd is installed and running. Going 'back' means a lot [more] of things to watch after. MOST of the common exploits that attack a PC with methods that run before the OS loads propagate locally via SMB1, many times bricking a PC firmware. Don't go there unless you can afford the risk!
The most ancient of SMB will use all the port range of 135-139 as UDP and some as TCP. Some of that was for WINS <--> Samba traffic IIRC. As time moved SMB to the NT1 'era' a lot of the TCP dropped.
Now just 137 and 138 UDP; 139 and 445 TCP. The 445 TCP was for support of 'NetBios over TCP' when a client supported enabling it (Windows NT - Win 8.1). This allowed older WINS Services on NT 3/4 IIRC to remain in place. These old memories have cobwebs in the cobwebs!