I configured a TOR bridge on my Ubuntu 20.04 VPS:
/etc/tor/torrc
:
ORPort 443
Nickname Bridge9812
ContactInfo relay@suxertpserv.net
BridgeRelay 1
PublishServerDescriptor 0
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy -enableLogging -unsafeLogging -logLevel DEBUG
ServerTransportListenAddr obfs4 0.0.0.0:37198
ExtORPort auto
Log notice file /var/log/tor/notices.log
Log debug file /var/log/tor/debug.log
I took the Bridge peer address from /var/lib/tor/pt_state/obfs4_bridgeline.txt
and fingerprint from /var/lib/tor/fingerprint
obfs4 75.34.243.100:443 B99D5FB2E1D669FA356A1A69A9C07CA6B6865FCE cert=s0G3BkvOB2L0g76aSJs1sMt3TMeH18Hmb/hX85ujtJJJAystAD5hdK3e4a9HbE3GGMlvEA iat-mode=0
However, from my browser the bridge is not reachable, the logs say:
2023-02-12 21:29:35.595 [NOTICE] New control connection opened from 127.0.0.1.
2023-02-12 21:29:35.595 [NOTICE] New control connection opened from 127.0.0.1.
2023-02-12 21:29:35.601 [NOTICE] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.
2023-02-12 21:29:43.628 [NOTICE] Opening Socks listener on 127.0.0.1:9150
2023-02-12 21:29:43.629 [NOTICE] Opened Socks listener connection (ready) on 127.0.0.1:9150
2023-02-12 21:29:44.554 [NOTICE] Bootstrapped 1% (conn_pt): Connecting to pluggable transport
2023-02-12 21:29:44.555 [NOTICE] Bootstrapped 2% (conn_done_pt): Connected to pluggable transport
2023-02-12 21:29:44.625 [WARN] Proxy Client: unable to connect OR connection (handshaking (proxy)) with 75.34.243.100:443 ID=<none> RSA_ID=B99D5FB2E1D669FA356A1A69A9C07CA6B6865FCE ("general SOCKS server failure")
2023-02-12 21:29:45.744 [WARN] Proxy Client: unable to connect OR connection (handshaking (proxy)) with 75.34.243.100:443 ID=<none> RSA_ID=B99D5FB2E1D669FA356A1A69A9C07CA6B6865FCE ("general SOCKS server failure")
2023-02-12 21:29:47.627 [WARN] Proxy Client: unable to connect OR connection (handshaking (proxy)) with 75.34.243.100:443 ID=<none> RSA_ID=B99D5FB2E1D669FA356A1A69A9C07CA6B6865FCE ("general SOCKS server failure")
I don't see any messages in /var/lib/tor/pt_state/obfs4proxy.log
, /var/log/tor/notices.log
, or /var/log/tor/debug.lo
g.
The bridge is accessible via telnet 75.34.243.100 443 from my laptop where I have the TOR browser installed. The TOR relay check tool says it is reachable. How can I troubleshoot that handshaking proxy error?
Version information:
tor browser: 12.0.2
tor bridge on ubuntu: 0.4.7.13
any help much appreciated!
Update: after some investigation I found the following message in obfs4proxy.log
:
==> /var/lib/tor/pt_state/obfs4proxy.log <==
2023/02/14 10:59:33 [WARN]: obfs4([scrubbed]:11423) - handshake failed: handshake: Failed to find M_[C,S]
2023/02/14 11:00:35 [WARN]: obfs4([scrubbed]:11395) - handshake failed: handshake: Failed to find M_[C,S]
2023/02/14 11:01:14 [WARN]: obfs4([scrubbed]:11405) - handshake failed: handshake: Failed to find M_[C,S]