diff options
Diffstat (limited to 'acf/modules/awall.lua')
-rw-r--r-- | acf/modules/awall.lua | 14 |
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 |