iptables -A INPUT -p TCP –dport 139 -m state -m limit -limit 10/minute -limit-burst 2 -j ACCEPT
iptables -A INPUT -p UDP –dport 137 -m state -m limit -limit 10/minute -limit-burst 2 -j ACCEPT
iptables -A INPUT -p UDP –dport 138 -m state -m limit -limit 10/minute -limit-burst 2 -j ACCEPT
iptables -A INPUT -p tcp –dport 139 -m limit –limit 2000/s -j ACCEPT
iptables -A INPUT -p udp –dport 137 -m limit –limit 2000/s -j ACCEPT
iptables -A INPUT -p udp –dport 138 -m limit –limit 2000/s -j ACCEPT