diff options
Diffstat (limited to 'applications/luci-app-libreswan/root')
3 files changed, 67 insertions, 0 deletions
diff --git a/applications/luci-app-libreswan/root/etc/uci-defaults/802-luci-app-libreswan b/applications/luci-app-libreswan/root/etc/uci-defaults/802-luci-app-libreswan new file mode 100644 index 0000000000..6383335666 --- /dev/null +++ b/applications/luci-app-libreswan/root/etc/uci-defaults/802-luci-app-libreswan @@ -0,0 +1,8 @@ +#!/bin/sh + +uci -q batch <<-EOF >/dev/null + delete ucitrack.@libreswan[-1] + add ucitrack libreswan + set ucitrack.@libreswan[-1].init=ipsec + commit ucitrack +EOF 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" ] + } + } +} |