summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-strongswan-swanctl/root/usr
diff options
context:
space:
mode:
authorLukas Voegl <lvoegl@tdt.de>2023-11-03 14:54:59 +0100
committerLukas Voegl <lvoegl@tdt.de>2023-11-24 11:17:21 +0100
commit2ac043173181968bb3b4edff95c5cdb08c9d6d7b (patch)
treec799f0ac5a70130236f5836b7001b78a17538a91 /applications/luci-app-strongswan-swanctl/root/usr
parent1aac8df6f880b94847c6518c074cad1dc3ffb408 (diff)
luci-app-strongswan-swanctl: add status page
Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
Diffstat (limited to 'applications/luci-app-strongswan-swanctl/root/usr')
-rw-r--r--applications/luci-app-strongswan-swanctl/root/usr/share/luci/menu.d/luci-app-strongswan-swanctl.json13
-rw-r--r--applications/luci-app-strongswan-swanctl/root/usr/share/rpcd/acl.d/luci-app-strongswan-swanctl.json5
2 files changed, 18 insertions, 0 deletions
diff --git a/applications/luci-app-strongswan-swanctl/root/usr/share/luci/menu.d/luci-app-strongswan-swanctl.json b/applications/luci-app-strongswan-swanctl/root/usr/share/luci/menu.d/luci-app-strongswan-swanctl.json
index 2f0c5c5d1f..d229869d64 100644
--- a/applications/luci-app-strongswan-swanctl/root/usr/share/luci/menu.d/luci-app-strongswan-swanctl.json
+++ b/applications/luci-app-strongswan-swanctl/root/usr/share/luci/menu.d/luci-app-strongswan-swanctl.json
@@ -11,5 +11,18 @@
"luci-app-strongswan-swanctl"
]
}
+ },
+ "admin/status/strongswan": {
+ "title": "strongSwan IPsec",
+ "order": 90,
+ "action": {
+ "type": "view",
+ "path": "strongswan-swanctl/status"
+ },
+ "depends": {
+ "acl": [
+ "luci-app-strongswan-swanctl"
+ ]
+ }
}
}
diff --git a/applications/luci-app-strongswan-swanctl/root/usr/share/rpcd/acl.d/luci-app-strongswan-swanctl.json b/applications/luci-app-strongswan-swanctl/root/usr/share/rpcd/acl.d/luci-app-strongswan-swanctl.json
index 4f022c9463..d3b44a27a2 100644
--- a/applications/luci-app-strongswan-swanctl/root/usr/share/rpcd/acl.d/luci-app-strongswan-swanctl.json
+++ b/applications/luci-app-strongswan-swanctl/root/usr/share/rpcd/acl.d/luci-app-strongswan-swanctl.json
@@ -2,6 +2,11 @@
"luci-app-strongswan-swanctl": {
"description": "Grant access to luci-app-strongswan-swanctl",
"read": {
+ "file": {
+ "/usr/sbin/swanmon version": [ "exec" ],
+ "/usr/sbin/swanmon stats": [ "exec" ],
+ "/usr/sbin/swanmon list-sas": [ "exec" ]
+ },
"uci": [ "ipsec" ]
},
"write": {