Web lists-archives.com

Re: [Samba] Samba and UFW


He should have. After the filter definitions. 
( iptables -S show this ) 

-A ufw-before-input -i lo -j ACCEPT
-A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny
-A ufw-before-input -m conntrack --ctstate INVALID -j DROP

-A ufw-after-input -p udp -m udp --dport 137 -j ufw-skip-to-policy-input
-A ufw-after-input -p udp -m udp --dport 138 -j ufw-skip-to-policy-input
-A ufw-after-input -p tcp -m tcp --dport 139 -j ufw-skip-to-policy-input
-A ufw-after-input -p tcp -m tcp --dport 445 -j ufw-skip-to-policy-input
-A ufw-skip-to-policy-input -j DROP
-A ufw-skip-to-policy-output -j DROP
-A ufw-skip-to-policy-forward -j DROP

And then my own rule is in the list. ( order shown as in iptables -S output ) 
-A ufw-user-input -s -i eno1 -p tcp -m multiport --dports 139,445 -j ACCEPT

Whats needed, see my previous mail. 
He is missing the conntrack module.  (  lsmod |grep conntrack ) 
( see /etc/default/ufw ) 



To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba