How long does a blocked connection from Iptables last? Is there a way to set the timeout?
- by Josh
iptables -A INPUT -m state --state NEW -m recent --set # If we receive more than 10 connections in 10 seconds block our friend.
iptables -A INPUT -m state --state NEW -m recent --update --seconds 5 --hitcount 15 -j Log-N-Drop
I have these two relevant rules from iptables. if more than 15 connections are made in 5 seconds it logs…