aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-07 12:48:46 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-07 12:48:46 +0200
commitfc86983fcf5b4f44b778a7ad7f834de16aa872e3 (patch)
tree626303339f847b1f70f1c032b8627a046b403afb
parent91cc4094b0efa724a2012dc955424082707ecd17 (diff)
downloadawall-1.0.0.tar.bz2
awall-1.0.0.tar.xz
rename 'reverse-type' to 'reply-type'v1.0.0
-rw-r--r--awall/model.lua4
-rw-r--r--json/services.json4
2 files changed, 4 insertions, 4 deletions
diff --git a/awall/model.lua b/awall/model.lua
index 5ed6fb5..65148c4 100644
--- a/awall/model.lua
+++ b/awall/model.lua
@@ -264,7 +264,7 @@ function Rule:servoptfrags()
elseif util.contains({58, 'ipv6-icmp', 'icmpv6'}, sdef.proto) then
family = 'inet6'
oname = 'icmpv6-type'
- elseif sdef.type or sdef['reverse-type'] then
+ elseif sdef.type or sdef['reply-type'] then
self:error('Type specification not valid with '..sdef.proto)
end
@@ -279,7 +279,7 @@ function Rule:servoptfrags()
if sdef.type then
opts = opts..' --'..oname..' '..(
- self.reverse and sdef['reverse-type'] or sdef.type
+ self.reverse and sdef['reply-type'] or sdef.type
)
end
table.insert(res, {family=family, opts=opts})
diff --git a/json/services.json b/json/services.json
index f913a1f..cd2ad4e 100644
--- a/json/services.json
+++ b/json/services.json
@@ -82,8 +82,8 @@
"ospf": { "proto": "ospf" },
"pgsql": { "proto": "tcp", "port": 5432 },
"ping": [
- { "proto": "icmp", "type": 8, "reverse-type": 0 },
- { "proto": "icmpv6", "type": 128, "reverse-type": 129 }
+ { "proto": "icmp", "type": 8, "reply-type": 0 },
+ { "proto": "icmpv6", "type": 128, "reply-type": 129 }
],
"radius": [
{ "proto": "udp", "port": 1812 },