summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-firewall/luasrc/controller/firewall.lua
blob: 58a44c6018fa0395e151416c56faf64b735d6905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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