Skip to contentSkip to conversation

about merging fuzzy and connlimit ??

DISCUSSION Julio A. Romero 1 participant 1 message Aug 13, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

That's correct?

# Create average

iptables -N average

# Restrict the number of parallel connections per client IP

iptables -A average -m connlimit --connlimit-above 20 -j REJECT

# Traffic rate control above the lower limit per client IP

iptables -A average -m connlimit ! --connlimit-above 20 \
-m fuzzy --lower-limit 100 --upper-limit 1000 -j REJECT

# Allow the traffic below the lower limit

iptables -A average -m connlimit ! --connlimit-above 20 -j ACCEPT

thanks,
julio