summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-libreswan/root/usr/share
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-libreswan/root/usr/share')
-rw-r--r--applications/luci-app-libreswan/root/usr/share/luci/menu.d/luci-app-libreswan.json45
-rw-r--r--applications/luci-app-libreswan/root/usr/share/rpcd/acl.d/luci-app-libreswan.json14
2 files changed, 59 insertions, 0 deletions
diff --git a/applications/luci-app-libreswan/root/usr/share/luci/menu.d/luci-app-libreswan.json b/applications/luci-app-libreswan/root/usr/share/luci/menu.d/luci-app-libreswan.json
new file mode 100644
index 0000000000..a2974b514a
--- /dev/null
+++ b/applications/luci-app-libreswan/root/usr/share/luci/menu.d/luci-app-libreswan.json
@@ -0,0 +1,45 @@
+{
+ "admin/vpn/libreswan": {
+ "title": "Libreswan IPSec",
+ "order": 90,
+ "action": {
+ "type": "firstchild"
+ }
+ },
+
+ "admin/vpn/libreswan/overview": {
+ "title": "Overview",
+ "order": 10,
+ "action": {
+ "type": "view",
+ "path": "libreswan/overview"
+ }
+ },
+
+ "admin/vpn/libreswan/globals": {
+ "title": "IPSec Globals",
+ "order": 20,
+ "action": {
+ "type": "view",
+ "path": "libreswan/globals"
+ }
+ },
+
+ "admin/vpn/libreswan/proposals": {
+ "title": "IPSec Proposals",
+ "order": 30,
+ "action": {
+ "type": "view",
+ "path": "libreswan/proposals"
+ }
+ },
+
+ "admin/vpn/libreswan/tunnels": {
+ "title": "IPSec Tunnels",
+ "order": 40,
+ "action": {
+ "type": "view",
+ "path": "libreswan/tunnels"
+ }
+ }
+}
diff --git a/applications/luci-app-libreswan/root/usr/share/rpcd/acl.d/luci-app-libreswan.json b/applications/luci-app-libreswan/root/usr/share/rpcd/acl.d/luci-app-libreswan.json
new file mode 100644
index 0000000000..a846496d93
--- /dev/null
+++ b/applications/luci-app-libreswan/root/usr/share/rpcd/acl.d/luci-app-libreswan.json
@@ -0,0 +1,14 @@
+{
+ "luci-app-libreswan" : {
+ "description" : "Grant access to LuCI app Libreswan IPSec",
+ "read" : {
+ "ubus" : {
+ "libreswan" : [ "*" ]
+ },
+ "uci": [ "libreswan" ]
+ },
+ "write" : {
+ "uci": [ "libreswan" ]
+ }
+ }
+}