After google-ing on this topic, I could find the steps needed.
I configured my firewall "advanced" with 137/udp 138/udp 139/tcp 445/tcp
Next time I opened the firewall settings, there was "Windows File Sharing (SMB)" listed in the services.
Why was it not present from the start?
I then configured my Epson printer connected via USB to my Windows 7 desktop PC.
Mageia Control Center / Hardware / Setup the printer(s)
Add / Windows printer via SAMBA
smb://workgroup/HPE120BE/EPSON
authentication details : login and password of this computer.
This worked just fine.
BUT sometimes printing doesn't work. In the same session or after reboot.
If I disable the firewall completely then it works again.
I tried to manually check the firewall config, which seems correct.
[root@Dell1720Mageia1 shorewall]# pwd
/etc/shorewall
[root@Dell1720Mageia1 shorewall]# cat rules.drakx --> after advanced config in firewall
ACCEPT net fw udp 137,138 -
ACCEPT net fw tcp 6881:6999,139,445 -
[root@Dell1720Mageia1 shorewall]# cat rules.drakx --> after "Windows File Sharing (SMB)" in firewall selected
ACCEPT net fw udp 137,138,139,445,1024:1100 -
ACCEPT net fw tcp 137,138,139,445,1024:1100,6881:6999 -
What else can I check?