2008-05-25 17:00:30 +00:00
|
|
|
module("luci.controller.luci_fw.luci_fw", package.seeall)
|
2008-05-22 14:04:03 +00:00
|
|
|
|
|
|
|
function index()
|
2008-06-08 15:36:57 +00:00
|
|
|
require("luci.i18n").loadc("luci-fw")
|
|
|
|
local i18n = luci.i18n.translate
|
2008-07-17 16:02:29 +00:00
|
|
|
|
|
|
|
local nodes = {}
|
2008-06-08 15:36:57 +00:00
|
|
|
|
2008-08-04 23:36:33 +00:00
|
|
|
table.insert(nodes, entry({"admin", "network", "firewall"}, alias("admin", "network", "firewall", "zones"), i18n("fw_fw"), 60))
|
2008-10-09 20:28:07 +00:00
|
|
|
nodes[#nodes].index = true
|
|
|
|
|
2008-10-03 16:04:09 +00:00
|
|
|
table.insert(nodes, entry({"admin", "network", "firewall", "zones"}, cbi("luci_fw/zones"), i18n("fw_zones"), 10))
|
|
|
|
table.insert(nodes, entry({"admin", "network", "firewall", "redirection"}, cbi("luci_fw/redirect"), i18n("fw_redirect"), 30))
|
|
|
|
table.insert(nodes, entry({"admin", "network", "firewall", "traffic"}, cbi("luci_fw/traffic"), i18n("fw_traffic"), 20))
|
|
|
|
|
|
|
|
table.insert(nodes, entry({"admin", "network", "firewall", "rule"}, cbi("luci_fw/trule")))
|
2008-10-09 20:28:07 +00:00
|
|
|
nodes[#nodes].leaf = true
|
2008-10-03 16:04:09 +00:00
|
|
|
table.insert(nodes, entry({"admin", "network", "firewall", "redirect"}, cbi("luci_fw/rrule")))
|
2008-10-09 20:28:07 +00:00
|
|
|
nodes[#nodes].leaf = true
|
2008-07-17 16:02:29 +00:00
|
|
|
|
2008-10-31 09:35:11 +00:00
|
|
|
table.insert(nodes, entry({"mini", "network", "portfw"}, cbi("luci_fw/miniportfw", {autoapply=true}), i18n("fw_portfw", "Portweiterleitung"), 70))
|
2008-07-16 10:08:28 +00:00
|
|
|
|
2008-07-17 16:02:29 +00:00
|
|
|
for i,n in ipairs(nodes) do
|
|
|
|
n.i18n = "luci-fw"
|
|
|
|
n.dependent = true
|
|
|
|
end
|
2008-05-22 14:04:03 +00:00
|
|
|
end
|