[TOR] http tunnel capability

This commit is contained in:
Renat Gabdulhakov
2025-02-13 09:04:18 +00:00
parent 4ebacf00f1
commit c160c390a9
4 changed files with 26 additions and 9 deletions

View File

@@ -13,3 +13,7 @@
## 5.0.1-4 (14-08-2024)
- Add execution permission for permission for /etc/s6-overlay/s6-overlay/s6-rc.d/init-tor/run file
## 5.0.2-1 (13-02-2025)
- HTTP tunneling

View File

@@ -42,6 +42,10 @@ The installation of this add-on is pretty straightforward and not different in c
You should follow to the initial guide for configuring base addon options. Here will described only extra options in comparisons with base:
### Option: `http_tunnel`
Setting this option to true opens port 9080 to listen for connections from HTTP-speaking applications. Enabling this feature allows you to use other applications on your network to use the Tor network via http proxy.
### Option: `bridges`
> Ensure the option value is clear to avoid unintended use of transport plugins and bridges.

View File

@@ -21,13 +21,16 @@
"8123:80"
],
"socks": false,
"http_tunnel": false,
"stealth": false
},
"ports": {
"9050/tcp": 9050
"9050/tcp": 9050,
"9080/tcp": 9080
},
"ports_description": {
"9050/tcp": "Tor SOCKS proxy port"
"9050/tcp": "Tor SOCKS proxy port",
"9080/tcp": "Tor HTTP tunnel port"
},
"schema": {
"bridges": [
@@ -42,10 +45,11 @@
"match(^(.*:)?(?:[0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])?$)"
],
"socks": "bool",
"http_tunnel": "bool",
"stealth": "bool"
},
"slug": "tor",
"startup": "services",
"url": "https://github.com/alexbelgium/hassio-addons",
"version": "5.0.1-4"
"version": "5.0.2-1"
}

View File

@@ -89,6 +89,11 @@ else
echo 'SOCKSPort 127.0.0.1:9050' >> "${torrc}"
fi
# Configure Http tunnel port
if bashio::config.true 'http_tunnel'; then
echo 'HTTPTunnelPort 9080' >> "${torrc}"
fi
# Configure hidden services
if bashio::config.true 'hidden_services'; then
echo "HiddenServiceDir ${hidden_service_dir}" >> "${torrc}"