- Licensed to the public under the Apache License 2.0.
--%>
-
-<%-
- local fs = require "nixio.fs"
- local has_ip6tables = fs.access("/usr/sbin/ip6tables")
- local mode = 4
-
- if has_ip6tables then
- mode = luci.dispatcher.context.requestpath
- mode = tonumber(mode[#mode] ~= "iptables" and mode[#mode]) or 4
- end
--%>
-
-<%+header%>
-
-
-
-<%:Firewall Status%>
-
-<% if has_ip6tables then %>
-
-<% end %>
-
-
-
-
-
-
-
<%:Collecting data...%>
-
-
-
-
-<%+footer%>
diff --git a/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json b/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json
index 53d4b1736b..7dd7dae73b 100644
--- a/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json
+++ b/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json
@@ -8,20 +8,12 @@
}
},
- "admin/status/iptables/*": {
+ "admin/status/iptables": {
"title": "Firewall",
"order": 2,
"action": {
- "type": "template",
- "path": "admin_status/iptables"
- }
- },
-
- "admin/status/iptables_action/*": {
- "action": {
- "type": "call",
- "module": "luci.controller.admin.status",
- "function": "action_iptables"
+ "type": "view",
+ "path": "status/iptables"
}
},