aboutsummaryrefslogtreecommitdiffstats
path: root/main/awall/use-hashlimit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/awall/use-hashlimit.patch')
-rw-r--r--main/awall/use-hashlimit.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/awall/use-hashlimit.patch b/main/awall/use-hashlimit.patch
new file mode 100644
index 0000000000..e8d768d39c
--- /dev/null
+++ b/main/awall/use-hashlimit.patch
@@ -0,0 +1,14 @@
+diff --git a/awall/modules/filter.lua b/awall/modules/filter.lua
+index f01b586..d21b79e 100644
+--- a/awall/modules/filter.lua
++++ b/awall/modules/filter.lua
+@@ -212,7 +212,7 @@ function Filter:extraoptfrags()
+ if count > RECENT_MAX_COUNT then
+ ofrags = {
+ {
+- opts='-m limit --limit '..count..'/second',
++ opts='-m hashlimit --hashlimit-upto '..count..'/second --hashlimit-mode srcip --hashlimit-name '..chain,
+ target=logchain(self.log, 'accept', 'ACCEPT')
+ },
+ {target='DROP'}
+