aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-04-02 10:58:18 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-04-02 21:36:32 +0300
commit0ed64286945da1304d9fc2662b89c4df6f3ba8ec (patch)
treeccc4507299aa861cf630be45fe6e9a9ec72328bb
parentebfbfc9e5aefcfdfb0aa5ac829c62e48081bd968 (diff)
downloadawall-0ed64286945da1304d9fc2662b89c4df6f3ba8ec.tar.bz2
awall-0ed64286945da1304d9fc2662b89c4df6f3ba8ec.tar.xz
require connection tracking with conn-limit
-rw-r--r--awall/modules/filter.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/awall/modules/filter.lua b/awall/modules/filter.lua
index ec52207..82774cd 100644
--- a/awall/modules/filter.lua
+++ b/awall/modules/filter.lua
@@ -60,6 +60,9 @@ function Filter:init(...)
local limit = self:limit()
if limit then
+ if limit == 'conn-limit' and self['no-track'] then
+ self:error('Tracking required with connection limit')
+ end
if type(self[limit]) ~= 'table' then
self[limit] = {count=self[limit]}
end