Need a little help with UFW firewall rules.

Hi all. New Raspberry 2B owner here. I don’t quite understand how to set up a rule in UFW to allow my Raspberry to access the music folder on my Linux PC . I have used Samba and made a share but I can’t get past the firewall. The specific problem that i am having is understanding what port to put in the rule. My Raspberry is on my network but what port do I specify in the rule? BTW. When I turn off the firewall My Raspberry can see the folder just fine. Thanks.


you need to allow samba in UFW, this is probably denied by default.
I cant explain it better than the people here have

And dont forget to take a look here in the ubuntu community for a complete, detailed look at UFW

UFW is disabled by default on Ubuntu.

TCP port 445 is enough