Blocking ip flood iptables

I am using the following rule to protect from port 1081: 65535, but I need to ban ip flood for 1 month.

-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j syn_flood  -A INPUT -d 127.0.0.1/32 -p tcp -m tcp --dport 10081:65535 -m state --state NEW,ESTABLISHED -m recent --set --name DEFAULT --rsource -j ACCEPT  -A OUTPUT -s 127.0.0.1/32 -p tcp -m tcp --sport 10081:65535 -m state --state ESTABLISHED -j ACCEPT  -A syn_flood -m limit --limit 3/sec --limit-burst 500 -j RETURN  -A syn_flood -m limit --limit 3/sec --limit-burst 500 -j LOG --log-prefix "syn_flood:"  -A syn_flood -j DROP 

However, I still know how to ban it, please help me