summaryrefslogtreecommitdiffstats
path: root/acf/modules/awall.lua
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-03-01 09:41:37 +0000
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-03-01 13:14:26 +0200
commita717300296191677eb4fe6e2ebe76827cde41e77 (patch)
treef7ac6819fad8e97e7f68ac7e0ebc83c7e8cd8b77 /acf/modules/awall.lua
parent544ea51c3663070dadd588d9de3e22d6e045743e (diff)
downloadaconf-a717300296191677eb4fe6e2ebe76827cde41e77.tar.bz2
aconf-a717300296191677eb4fe6e2ebe76827cde41e77.tar.xz
adjusted the semantics of reference scope
Diffstat (limited to 'acf/modules/awall.lua')
-rw-r--r--acf/modules/awall.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/acf/modules/awall.lua b/acf/modules/awall.lua
index 8d25638..7d147f4 100644
--- a/acf/modules/awall.lua
+++ b/acf/modules/awall.lua
@@ -1,5 +1,5 @@
--[[
-Copyright (c) 2012 Kaarle Ritvanen
+Copyright (c) 2012-2013 Kaarle Ritvanen
See LICENSE file for license details
--]]
@@ -76,30 +76,30 @@ LogClass.limit = M.Integer
LogClass.prefix = M.String
IPSetReference = M.new()
-IPSetReference.name = M.Reference{scope='../../ipset', required=true}
+IPSetReference.name = M.Reference{scope='../../../ipset', required=true}
IPSetReference.args = M.Collection{type=Direction, required=true}
Rule = M.new()
-Rule['in'] = M.Collection{type=M.Reference{scope='../../zone'}}
-Rule.out = M.Collection{type=M.Reference{scope='../../zone'}}
+Rule['in'] = M.Collection{type=M.Reference{scope='../../../zone'}}
+Rule.out = M.Collection{type=M.Reference{scope='../../../zone'}}
Rule.src = M.Collection{type=M.String}
Rule.dest = M.Collection{type=M.String}
Rule.ipset = IPSetReference
Rule.ipsec = Direction
-Rule.service = M.Collection{type=M.Reference{scope='../../service'}}
+Rule.service = M.Collection{type=M.Reference{scope='../../../service'}}
Rule.action = M.String{choice={'accept'}}
-- TODO no service field
PolicyRule = M.new(Rule)
-PolicyRule.log = M.Reference{scope='../log'}
+PolicyRule.log = M.Reference{scope='../../log'}
PolicyRule.action = M.String{required=true,
choice={'accept', 'drop', 'reject', 'tarpit'}}
Limit = M.new()
Limit.count = M.Integer
Limit.interval = M.Integer
-Limit.log = M.Reference{scope='../../log'}
+Limit.log = M.Reference{scope='../../../log'}
FilterRule = M.new(PolicyRule)
FilterRule['conn-limit'] = Limit