diff options
author | Sergey Ponomarev <stokito@gmail.com> | 2023-12-04 20:27:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 19:27:53 +0100 |
commit | 7d14746ae88a83163a7e34daae70b264285bbe56 (patch) | |
tree | 177683e67b8558a259f63ed19d5fb0043b14a1fc /applications/luci-app-sshtunnel/root/usr | |
parent | 9d746c75f4023bf3c4bcfe77eaa394fbf0188d95 (diff) |
New app: luci-app-sshtunnel for SSH tunnels (#6424)
* luci-app-sshtunnel: SSH tunnels
The app helps to configure SSH tunnels.
You can also generate an SSH key and see known hosts.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-sshtunnel/root/usr')
-rw-r--r-- | applications/luci-app-sshtunnel/root/usr/share/luci/menu.d/luci-app-sshtunnel.json | 45 | ||||
-rw-r--r-- | applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json | 20 |
2 files changed, 65 insertions, 0 deletions
diff --git a/applications/luci-app-sshtunnel/root/usr/share/luci/menu.d/luci-app-sshtunnel.json b/applications/luci-app-sshtunnel/root/usr/share/luci/menu.d/luci-app-sshtunnel.json new file mode 100644 index 0000000000..b32c53ad49 --- /dev/null +++ b/applications/luci-app-sshtunnel/root/usr/share/luci/menu.d/luci-app-sshtunnel.json @@ -0,0 +1,45 @@ +{ + "admin/services/sshtunnel": { + "title": "SSH Tunnels", + "order": 50, + "action": { + "type": "alias", + "path": "admin/services/sshtunnel/ssh_tunnels" + }, + "depends": { + "acl": [ "luci-app-sshtunnel" ] + } + }, + "admin/services/sshtunnel/ssh_keys": { + "title": "SSH Keys", + "order": 10, + "action": { + "type": "view", + "path": "sshtunnel/ssh_keys" + } + }, + "admin/services/sshtunnel/ssh_servers": { + "title": "Servers", + "order": 20, + "action": { + "type": "view", + "path": "sshtunnel/ssh_servers" + } + }, + "admin/services/sshtunnel/ssh_tunnels": { + "title": "SSH Tunnels", + "order": 30, + "action": { + "type": "view", + "path": "sshtunnel/ssh_tunnels" + } + }, + "admin/services/sshtunnel/ssh_hosts": { + "title": "Known Hosts", + "order": 40, + "action": { + "type": "view", + "path": "sshtunnel/ssh_hosts" + } + } +} diff --git a/applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json b/applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json new file mode 100644 index 0000000000..5dfb1405c7 --- /dev/null +++ b/applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json @@ -0,0 +1,20 @@ +{ + "luci-app-sshtunnel": { + "description": "Grant UCI access for luci-app-sshtunnel", + "read": { + "file": { + "/root/.ssh/": [ "list" ], + "/root/.ssh/*.pub": [ "read" ], + "/root/.ssh/known_hosts": [ "read" ], + "/usr/bin/ssh-keygen": [ "list" ], + "/usr/bin/ssh-keygen *": [ "exec" ], + "/usr/bin/dropbearkey": [ "list" ], + "/usr/bin/dropbearkey *": [ "exec" ] + }, + "uci": [ "sshtunnel" ] + }, + "write": { + "uci": [ "sshtunnel" ] + } + } +} |