luci/applications/luci-app-firewall/luasrc/controller/firewall.lua
Jo-Philipp Wich 9c16090780 luci-app-firewall: switch to client side CBI views
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00

20 lines
613 B
Lua

module("luci.controller.firewall", package.seeall)
function index()
entry({"admin", "network", "firewall"},
alias("admin", "network", "firewall", "zones"),
_("Firewall"), 60)
entry({"admin", "network", "firewall", "zones"},
view("firewall/zones"), _("General Settings"), 10)
entry({"admin", "network", "firewall", "forwards"},
view("firewall/forwards"), _("Port Forwards"), 20)
entry({"admin", "network", "firewall", "rules"},
view("firewall/rules"), _("Traffic Rules"), 30)
entry({"admin", "network", "firewall", "custom"},
form("firewall/custom"),
_("Custom Rules"), 40).leaf = true
end