From db05725432476abfc5d5274e1abffc2234829cdd Mon Sep 17 00:00:00 2001 From: Weston Blieden Date: Tue, 14 Apr 2026 13:44:31 +0200 Subject: [PATCH] Add HTTP CONNECT proxy (8080) and SOCKS5 (1055) to custom variants --- README.md | 28 +++++++++++++++++++++-- aarch64_custom/app/html/index.html | 8 +++++++ aarch64_custom/app/lib/start_tailscale.sh | 3 +++ arm_custom/app/html/index.html | 8 +++++++ arm_custom/app/lib/start_tailscale.sh | 3 +++ 5 files changed, 48 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e525f0..325b6bc 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,8 @@ This repository provides an **ACAP package** that installs the [Tailscale VPN cl - [๐Ÿ“ฅ Installation](#-installation) - [๐Ÿš€ Usage](#-usage) -- [๐Ÿ”„ Updating Tailscale](#-updating-tailscale) +- [๏ฟฝ Proxy Support](#-proxy-support) +- [๏ฟฝ๐Ÿ”„ Updating Tailscale](#-updating-tailscale) - [๐Ÿงช Testers Needed](#-testers-needed) - [๐ŸŽ‰ Good News](#-good-news) - [๐ŸŽฏ Purpose](#-purpose) @@ -59,7 +60,30 @@ Once installed: --- -## ๐Ÿ”„ Updating Tailscale +## ๏ฟฝ Proxy Support + +The **custom** variant exposes two local proxy endpoints that route outbound traffic through the Tailscale tunnel: + +### HTTP CONNECT Proxy โ€” `http://127.0.0.1:8080` + +Routes HTTP and HTTPS traffic. Set this wherever an HTTP/HTTPS proxy field is available on the camera: + +| Location | Field | Value | +|---|---|---| +| System โ†’ Network โ†’ Global proxies | HTTP proxy | `http://127.0.0.1:8080` | +| System โ†’ Network โ†’ Global proxies | HTTPS proxy | `http://127.0.0.1:8080` | +| System โ†’ MQTT โ†’ Broker | HTTP proxy | `http://127.0.0.1:8080` | +| System โ†’ MQTT โ†’ Broker | HTTPS proxy | `http://127.0.0.1:8080` | + +### SOCKS5 Proxy โ€” `127.0.0.1:1055` + +For ACAP apps or services that support SOCKS5, set their proxy to `127.0.0.1:1055`. + +> โ„น๏ธ Proxy addresses are shown in the **Connection Details** panel of the web UI when connected. + +--- + +## ๏ฟฝ๐Ÿ”„ Updating Tailscale - New `.eap` files are auto-built and released **weekly** (if a new Tailscale version is available). - To update, simply install the new `.eap` over the existing one. diff --git a/aarch64_custom/app/html/index.html b/aarch64_custom/app/html/index.html index c3415a0..ead4afb 100644 --- a/aarch64_custom/app/html/index.html +++ b/aarch64_custom/app/html/index.html @@ -358,6 +358,14 @@
Version
-
+
+
HTTP/HTTPS Proxy
+
http://127.0.0.1:8080
+
+
+
SOCKS5 Proxy
+
127.0.0.1:1055
+
diff --git a/aarch64_custom/app/lib/start_tailscale.sh b/aarch64_custom/app/lib/start_tailscale.sh index 55e5c35..c32ddb6 100644 --- a/aarch64_custom/app/lib/start_tailscale.sh +++ b/aarch64_custom/app/lib/start_tailscale.sh @@ -42,6 +42,7 @@ $TAILSCALED_PATH \ --state="$STATE_DIR/tailscaled.state" \ --socket=$SOCKET_PATH \ --socks5-server=localhost:1055 \ + --outbound-http-proxy-listener=localhost:8080 \ --tun=userspace-networking \ 2>&1 | logger -t "tailscale_script" & TAILSCALED_PID=$! @@ -76,6 +77,8 @@ fi # Keep the script running to maintain the tailscaled process logger -t "tailscale_script" "Tailscale VPN is running" +logger -t "tailscale_script" "HTTP/HTTPS proxy: http://127.0.0.1:8080" +logger -t "tailscale_script" "SOCKS5 proxy: 127.0.0.1:1055" logger -t "tailscale_script" "To change settings, modify parameters in ACAP web interface" # Wait for tailscaled process to exit diff --git a/arm_custom/app/html/index.html b/arm_custom/app/html/index.html index c3415a0..ead4afb 100644 --- a/arm_custom/app/html/index.html +++ b/arm_custom/app/html/index.html @@ -358,6 +358,14 @@
Version
-
+
+
HTTP/HTTPS Proxy
+
http://127.0.0.1:8080
+
+
+
SOCKS5 Proxy
+
127.0.0.1:1055
+
diff --git a/arm_custom/app/lib/start_tailscale.sh b/arm_custom/app/lib/start_tailscale.sh index 55e5c35..c32ddb6 100644 --- a/arm_custom/app/lib/start_tailscale.sh +++ b/arm_custom/app/lib/start_tailscale.sh @@ -42,6 +42,7 @@ $TAILSCALED_PATH \ --state="$STATE_DIR/tailscaled.state" \ --socket=$SOCKET_PATH \ --socks5-server=localhost:1055 \ + --outbound-http-proxy-listener=localhost:8080 \ --tun=userspace-networking \ 2>&1 | logger -t "tailscale_script" & TAILSCALED_PID=$! @@ -76,6 +77,8 @@ fi # Keep the script running to maintain the tailscaled process logger -t "tailscale_script" "Tailscale VPN is running" +logger -t "tailscale_script" "HTTP/HTTPS proxy: http://127.0.0.1:8080" +logger -t "tailscale_script" "SOCKS5 proxy: 127.0.0.1:1055" logger -t "tailscale_script" "To change settings, modify parameters in ACAP web interface" # Wait for tailscaled process to exit