aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 },