summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-libreswan/root/usr
diff options
context:
space:
mode:
authorJaymin Patel <jem.patel@gmail.com>2023-10-22 12:09:57 +0530
committerJo-Philipp Wich <jo@mein.io>2023-11-10 13:16:34 +0100
commit9f652445355258497fd7f8c7f06dd75f58cd64ce (patch)
tree17a23de32f15cc4f11f12fdac3a8e5375c889942 /applications/luci-app-libreswan/root/usr
parent5d3558f3f7eb96ea879e5d1c13a7baa1de5e7d25 (diff)
luci-app-libreswan: Add LuCI for Libreswan
LuCI Support for IPSec VPN (Libreswan) Signed-off-by: Jaymin Patel <jem.patel@gmail.com> [fix '15h' label typo] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-libreswan/root/usr')
-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" ]
+ }
+ }
+}