iptables OUTPUT rules for Samba connections
Could anybody help me with Samba rules for the iptables OUTPUT chain? I have a paranoia, so default policy for my OUTPUT chain is DROP. I want control everything is going on within inside my computer and what's going outside. Unfortunately I couldn't figure out OUTPUT rules for Samba connections. I've tried hundreds combinations, but had no luck. The INPUT is below and it works fine, if my OUTPUT policy set to ACCEPT.
-A INPUT -p tcp -m multiport --dports 137,138 -j ACCEPT
-A INPUT -p udp -m multiport --dports 139,445 -j ACCEPT
-A INPUT -p udp -m multiport --dports 137,138 -j ACCEPT