Osmc / smb and ufw firewall

Perhaps I’ve misread, but it seems like the PC is acting as the SMB server and the Pi is the client. However your UFW configuration appears to be for a server, ie it restricts incoming traffic to certain ports. So is this configuration for the Pi or for the PC?