|
You can use a firewall with Samba, here's what mine looks like, I test it up thru webmin. As far as the printer goes, not 100% sure but browseable probably has to be set to yes for win clients to see it
# Samba
-A RH-Firewall-1-INPUT -p udp -m udp -m multiport -m state -s 192.168.0.0/24 --state NEW,ESTABLISHED,RELATED -j ACCEPT --dports 137,138,139,445
# Samba
-A RH-Firewall-1-INPUT -p tcp -m tcp -m multiport -m state -s 192.168.0.0/24 --state NEW,ESTABLISHED,RELATED -j ACCEPT --dports 137,138,139,445
|