mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-18 06:23:02 +08:00
⛅ Sync 2026-10-03 02:37:08
This commit is contained in:
1 parent
1b126bfea3
commit
a5bb91e6ed
24 files changed
+5536
-990
No files matched your search
@@ -1,29 +1,55 @@
|
||||
{
|
||||
"admin/vpn/zerotier": {
|
||||
"title": "ZeroTier",
|
||||
"order": 90,
|
||||
"admin/vpn": {
|
||||
"title": "VPN",
|
||||
"order": 45,
|
||||
"action": {
|
||||
"type": "firstchild"
|
||||
}
|
||||
},
|
||||
"admin/vpn/zerotier": {
|
||||
"title": "ZeroTier",
|
||||
"order": 99,
|
||||
"depends": {
|
||||
"fs": {
|
||||
"/etc/config/zerotier": "file"
|
||||
}
|
||||
},
|
||||
"action": {
|
||||
"type": "alias",
|
||||
"path": "admin/vpn/zerotier/general"
|
||||
}
|
||||
},
|
||||
"admin/vpn/zerotier/general": {
|
||||
"title": "Base Setting",
|
||||
"order": 1,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "zerotier/general"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-zerotier" ],
|
||||
"uci": { "zerotier": true }
|
||||
"acl": [ "luci-app-zerotier", "luci-app-zerotier-rpc" ]
|
||||
}
|
||||
},
|
||||
"admin/vpn/zerotier/config": {
|
||||
"title": "Configuration",
|
||||
"order": 10,
|
||||
"admin/vpn/zerotier/info": {
|
||||
"title": "Interface Info",
|
||||
"order": 2,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "zerotier/config"
|
||||
"path": "zerotier/info"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-zerotier-rpc" ]
|
||||
}
|
||||
},
|
||||
"admin/vpn/zerotier/interface": {
|
||||
"title": "Interface info",
|
||||
"order": 20,
|
||||
"admin/vpn/zerotier/remote": {
|
||||
"title": "Remote Controller",
|
||||
"order": 3,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "zerotier/interface"
|
||||
"path": "zerotier/remote"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-zerotier-rpc" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"luci-app-zerotier-rpc": {
|
||||
"description": "Grant access to luci-zerotier RPC methods - Security hardened",
|
||||
"read": {
|
||||
"ubus": {
|
||||
"luci-zerotier": [
|
||||
"status",
|
||||
"get_networks_peers",
|
||||
"list_moons",
|
||||
"ping_networks",
|
||||
"remote_list",
|
||||
"remote_diagnose",
|
||||
"remote_ctl_get",
|
||||
"remote_member_list",
|
||||
"remote_peer_list",
|
||||
"remote_moon_plan"
|
||||
]
|
||||
}
|
||||
},
|
||||
"write": {
|
||||
"ubus": {
|
||||
"luci-zerotier": [
|
||||
"reload",
|
||||
"restart_service",
|
||||
"sync_config",
|
||||
"orbit_moon",
|
||||
"deorbit_moon",
|
||||
"remote_host_set",
|
||||
"remote_host_del",
|
||||
"remote_network_set",
|
||||
"remote_network_del",
|
||||
"remote_member_set",
|
||||
"remote_moon_apply"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,7 @@
|
||||
{
|
||||
"luci-app-zerotier": {
|
||||
"description": "Grant access to ZeroTier configuration",
|
||||
"description": "Grant UCI access for luci-app-zerotier",
|
||||
"read": {
|
||||
"file": {
|
||||
"/sbin/ifconfig": [ "exec" ]
|
||||
},
|
||||
"ubus": {
|
||||
"service": [ "list" ]
|
||||
},
|
||||
"uci": [ "zerotier" ]
|
||||
},
|
||||
"write": {
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"config": "zerotier",
|
||||
"init": "luci-zerotier"
|
||||
}
|
||||
Reference in new issue
Block a user