firewall.lua 777 B

1234567891011121314151617181920212223
  1. module("luci.controller.firewall", package.seeall)
  2. function index()
  3. entry({"admin", "network", "firewall"},
  4. alias("admin", "network", "firewall", "zones"),
  5. _("Firewall"), 60)
  6. entry({"admin", "network", "firewall", "zones"},
  7. arcombine(cbi("firewall/zones"), cbi("firewall/zone-details")),
  8. _("General Settings"), 10).leaf = true
  9. entry({"admin", "network", "firewall", "forwards"},
  10. arcombine(cbi("firewall/forwards"), cbi("firewall/forward-details")),
  11. _("Port Forwards"), 20).leaf = true
  12. entry({"admin", "network", "firewall", "rules"},
  13. arcombine(cbi("firewall/rules"), cbi("firewall/rule-details")),
  14. _("Traffic Rules"), 30).leaf = true
  15. entry({"admin", "network", "firewall", "custom"},
  16. cbi("firewall/custom"),
  17. _("Custom Rules"), 40).leaf = true
  18. end