Some changes in per IP Connection Limit.
This commit is contained in:
@ -967,6 +967,11 @@ fi
|
||||
|
||||
echononl "\tLimit connections per source IP"
|
||||
if $limit_connections_per_source_IP ; then
|
||||
|
||||
if ! is_number $per_IP_connection_limit ; then
|
||||
per_IP_connection_limit=$default_per_IP_connection_limit
|
||||
fi
|
||||
|
||||
if $log_rejected || $log_all ; then
|
||||
$ipt -A INPUT -p tcp -m connlimit --connlimit-above $per_IP_connection_limit -j $LOG_TARGET $tag_log_prefix "$log_prefix CONN limit per IP:"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user