summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-tor/root/usr/share
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2023-12-04 21:09:55 +0200
committerGitHub <noreply@github.com>2023-12-04 20:09:55 +0100
commit3283cb2ebdb3dbd8ae744125ecd577a0025d14ad (patch)
treebffba1626a2ffeab830ab888b0ac8b794e68f8db /applications/luci-app-tor/root/usr/share
parent7d14746ae88a83163a7e34daae70b264285bbe56 (diff)
luci-app-tor: Manage tor-hs onion services (#6476)
* luci-app-tor: Manage Onion services (tor-hs) The tor-hs packages provides Tor Onion (Hidden) Services. This is a good option to bypass NAT and have stable access to a router. Later once the main Tor package gains a support of a Proxy/Bridge configuration. We can add this to the same luci app as a different view. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-tor/root/usr/share')
-rw-r--r--applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json23
-rw-r--r--applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json22
2 files changed, 45 insertions, 0 deletions
diff --git a/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json b/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json
new file mode 100644
index 0000000000..19777f6bd0
--- /dev/null
+++ b/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json
@@ -0,0 +1,23 @@
+{
+ "admin/services/tor": {
+ "title": "Tor onion router",
+ "order": 60,
+ "action": {
+ "type": "alias",
+ "path": "admin/services/tor/tor-hs"
+ },
+ "depends": {
+ "acl": [
+ "luci-app-tor"
+ ]
+ }
+ },
+ "admin/services/tor/tor-hs": {
+ "title": "Tor Onion Services",
+ "order": 20,
+ "action": {
+ "type": "view",
+ "path": "tor/tor-hs"
+ }
+ }
+}
diff --git a/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json b/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json
new file mode 100644
index 0000000000..81bb9272bd
--- /dev/null
+++ b/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json
@@ -0,0 +1,22 @@
+{
+ "luci-app-tor": {
+ "description": "Grant UCI access for luci-app-tor",
+ "read": {
+ "ubus": {
+ "tor_rpcd.sh": [
+ "list-hs"
+ ]
+ },
+ "uci": [
+ "tor",
+ "tor-hs"
+ ]
+ },
+ "write": {
+ "uci": [
+ "tor",
+ "tor-hs"
+ ]
+ }
+ }
+}