nmb uses ports 137 & 138 udp & 139 tcp.
You will also need dns 53...
Best bet is to LOG the packets coming in and out and see what is being sent and dropped and then make rules to suit...
Have a look at this
tutorial for extra help.
The port allocations are in the file /etc/services