From 731b310359631eb2408c4af1c48f9b72e9b089e7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 30 Apr 2012 13:43:34 -0700 Subject: [PATCH] Use --hashlimit-upto when available. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 08be3b845..5cf6314d7 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -3970,7 +3970,7 @@ sub do_ratelimit( $$ ) { if ( $rate =~ /^[sd]:((\w*):)?((\d+)(\/(sec|min|hour|day))?):(\d+)$/ ) { fatal_error "Invalid Rate ($3)" unless $4; fatal_error "Invalid Burst ($7)" unless $7; - $limit .= "--hashlimit $3 --hashlimit-burst $7 --hashlimit-name "; + $limit .= "--$match $3 --hashlimit-burst $7 --hashlimit-name "; $limit .= $2 ? $2 : 'shorewall' . $hashlimitset++; $limit .= ' --hashlimit-mode '; $units = $6;