summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/root/usr/share
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-mod-status/root/usr/share')
-rw-r--r--modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json26
-rw-r--r--modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json5
2 files changed, 29 insertions, 2 deletions
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 e726c56b27..190eef0ad3 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
@@ -31,7 +31,31 @@
"path": "status/iptables"
},
"depends": {
- "acl": [ "luci-mod-status-firewall" ]
+ "acl": [ "luci-mod-status-firewall" ],
+ "fs": [
+ { "/usr/sbin/nft": "absent", "/usr/sbin/iptables": "executable" },
+ { "/usr/sbin/nft": "absent", "/usr/sbin/ip6tables": "executable" }
+ ]
+ }
+ },
+
+ "admin/status/nftables": {
+ "title": "Firewall",
+ "order": 3,
+ "action": {
+ "type": "view",
+ "path": "status/nftables"
+ },
+ "depends": {
+ "acl": [ "luci-mod-status-firewall" ],
+ "fs": { "/usr/sbin/nft": "executable" }
+ }
+ },
+
+ "admin/status/nftables/iptables": {
+ "action": {
+ "type": "view",
+ "path": "status/iptables"
}
},
diff --git a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json
index 32de24c06f..18d267e801 100644
--- a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json
+++ b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json
@@ -71,9 +71,12 @@
"read": {
"cgi-io": [ "exec" ],
"file": {
+ "/usr/sbin/nft --terse --json list ruleset": [ "exec" ],
"/usr/sbin/iptables --line-numbers -w -nvxL -t *": [ "exec" ],
"/usr/sbin/ip6tables --line-numbers -w -nvxL -t *": [ "exec" ],
- "/usr/sbin/ip6tables": [ "list" ]
+ "/usr/sbin/ip6tables": [ "list" ],
+ "/usr/sbin/iptables-save": [ "exec" ],
+ "/usr/sbin/ip6tables-save": [ "exec" ]
},
"ubus": {
"file": [ "stat" ]