Tor connects to private obfs4 bridge, but torbrowser fails
I setup a private bridge (Tor 0.2.8.4) and tested it with Tor Browser (6.0.2) successfully.
When I enabled obsf4 (0.0.3) in the bridge, Tor Browser (both 6.0.2 and 6.5a1) fails connecting with a "general SOCKS server failure":
...
13/07/2016 15:07:46.200 [NOTICE] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.
13/07/2016 15:07:46.200 [NOTICE] Opening Socks listener on 127.0.0.1:9150
13/07/2016 15:07:47.500 [NOTICE] Bootstrapped 5%: Connecting to directory server
13/07/2016 15:07:47.500 [NOTICE] Bootstrapped 10%: Finishing handshake with directory server
13/07/2016 15:07:47.500 [WARN] Proxy Client: unable to connect to x.x.x.x:443 ("general SOCKS server failure")
13/07/2016 15:07:54.800 [NOTICE] Closing no-longer-configured Socks listener on 127.0.0.1:9150
13/07/2016 15:07:54.800 [NOTICE] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.
13/07/2016 15:07:54.800 [NOTICE] Closing old Socks listener on 127.0.0.1:9150
However, Tor connects well to the bridge via command line:
~# tor usebridges 1 bridge "obfs4 x.x.x.x:443 BRIDGEFINGERPRINT"
Jul 13 12:15:30.697 [notice] Tor v0.2.7.6 (git-605ae665009853bd) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2h and Zlib 1.2.8.
...
Jul 13 12:15:32.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
Jul 13 12:15:32.000 [notice] new bridge descriptor 'name' (fresh): $BRIDGEFINGERPRINT~name at x.x.x.x
...
Jul 13 12:15:34.000 [notice] Bootstrapped 100%: Done
Jul 13 13:15:33.000 [notice] new bridge descriptor 'name' (fresh): $BRIDGEFINGERPRINT~name at x.x.x.x
Jul 13 14:15:34.000 [notice] new bridge descriptor 'name' (fresh): $BRIDGEFINGERPRINT~name at x.x.x.x
Moreover, when I configure torbrowser to connect to obfs4 bridges configured automatically, it works.
This is my bridge torrc:
ORPort 443
Address x.x.x.x
Nickname name
BridgeRelay 1
PublishServerDescriptor 0
SocksPort 0
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy managed
ExtORPort auto
I followed the official documentation in setting up the bridge.
update: The official obfs4proxy setup doc has moved to the wiki
ServerTransportPlugin
above. obfs4proxy does not support it and it may be the root of your problem.