Use this container to test your tor webtunnel.
892
A single Docker image to test your Tor WebTunnel Bridge.
The image supports both of these modes with the same entrypoint:
CONNECTION_STRINGINPUT_FILEdocker run --rm -it \
-e CONNECTION_STRING='webtunnel 10.0.0.161:443 SOMEFINGERPRINT url=https://webtunnel.example.com/your-webtunnel-path ver=0.0.1' \
webtunnel-client:latest
docker run --rm -it \
-v "$PWD/example-input-file.txt:/app/bridges.txt:ro" \
webtunnel-client:latest /app/bridges.txt
Or via env:
docker run --rm -it \
-e INPUT_FILE=/app/bridges.txt \
-v "$PWD/example-input-file.txt:/app/bridges.txt:ro" \
webtunnel-client:latest
The file format is the same as the example input file, and a trailing # comment is treated as the label for the output line.
✅ Tor connection is true for bridge-1 # Check Tor API-Response: {"IsTor":true,"IP":"45.84.107.47"}
❌ Tor connection is false for bridge-2 # Check Tor API-Response: {"IsTor":false,"IP":"..."}
Pass --json or set JSON_OUTPUT=1 to get machine-readable output. In JSON mode stdout contains only JSON, and the exit code is 1 if any bridge fails.
Single bridge:
docker run --rm \
-e CONNECTION_STRING='webtunnel 10.0.0.161:443 SOMEFINGERPRINT url=https://webtunnel.example.com/your-webtunnel-path ver=0.0.1 # bridge-1' \
webtunnel-client:latest --json
{
"bridge": "webtunnel 10.0.0.161:443 SOMEFINGERPRINT url=https://webtunnel.example.com/your-webtunnel-path ver=0.0.1",
"ip": "45.84.107.47",
"isTor": true,
"label": "bridge-1",
"ok": true
}
Multiple bridges, results in the order of the file:
docker run --rm \
-e JSON_OUTPUT=1 \
-v "$PWD/example-input-file.txt:/app/bridges.txt:ro" \
webtunnel-client:latest /app/bridges.txt | jq .
[
{
"bridge": "webtunnel 10.0.0.161:443 SOMEFINGERPRINT url=https://webtunnel.example.com/your-webtunnel-path ver=0.0.1",
"ip": "45.84.107.47",
"isTor": true,
"label": "bridge-1",
"ok": true
},
{
"bridge": "webtunnel 10.0.0.161:443 OTHERFINGERPRINT url=https://webtunnel.example.org/other-webtunnel-path ver=0.0.1",
"error": "could not connect to bridge within 30s: bootstrap at 2% (conn_done_pt), last tor warning: Proxy Client: unable to connect OR connection (handshaking (proxy)) with 10.0.0.161:443 ID=<none> RSA_ID=OTHERFINGERPRINT (\"general SOCKS server failure\")",
"label": "bridge-2",
"ok": false
}
]
Failed bridges carry an error instead of ip/isTor. To list only the failing labels:
docker run --rm -e JSON_OUTPUT=1 \
-v "$PWD/example-input-file.txt:/app/bridges.txt:ro" \
webtunnel-client:latest /app/bridges.txt | jq -r '.[] | select(.ok | not) | .label'
Slow bridges can take a while to bootstrap. The default limit is 120 seconds per bridge; change it with BOOTSTRAP_TIMEOUT (seconds, or a duration such as 90s).
Content type
Image
Digest
sha256:fa95dc839…
Size
59.4 MB
Last updated
1 day ago
docker pull bubatzlegal/webtunnel-client