Added REJECT target to firewall zone configuration
This commit is contained in:
parent
fcd2b9726a
commit
069cce7459
1 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,7 @@ p[2] = s:option(ListValue, "output")
|
||||||
p[3] = s:option(ListValue, "forward")
|
p[3] = s:option(ListValue, "forward")
|
||||||
|
|
||||||
for i, v in ipairs(p) do
|
for i, v in ipairs(p) do
|
||||||
|
v:value("REJECT", translate("fw_reject"))
|
||||||
v:value("DROP", translate("fw_drop"))
|
v:value("DROP", translate("fw_drop"))
|
||||||
v:value("ACCEPT", translate("fw_accept"))
|
v:value("ACCEPT", translate("fw_accept"))
|
||||||
end
|
end
|
||||||
|
@ -44,6 +45,7 @@ p[2] = s:option(ListValue, "output")
|
||||||
p[3] = s:option(ListValue, "forward")
|
p[3] = s:option(ListValue, "forward")
|
||||||
|
|
||||||
for i, v in ipairs(p) do
|
for i, v in ipairs(p) do
|
||||||
|
v:value("REJECT", translate("fw_reject"))
|
||||||
v:value("DROP", translate("fw_drop"))
|
v:value("DROP", translate("fw_drop"))
|
||||||
v:value("ACCEPT", translate("fw_accept"))
|
v:value("ACCEPT", translate("fw_accept"))
|
||||||
end
|
end
|
||||||
|
@ -60,4 +62,4 @@ function net.cfgvalue(self, section)
|
||||||
return value or name:cfgvalue(section)
|
return value or name:cfgvalue(section)
|
||||||
end
|
end
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
Loading…
Reference in a new issue