Using bridges with Tor daemon (service)

In my previous guides I showed you how to set up Tor, obfs4proxy and how to use it with Tor Browser.

But what if you want to use your bridge from within the Tor daemon directly? I will show you how!

Editing /etc/tor/torrc

To use a plain Tor bridge, append the following lines to /etc/tor/torrc:

UseBridges 1
Bridge IP_ADDRESS:PORT FINGERPRINT_HERE

To use an obfs4proxy bridge, you need to make sure you installed obfs4proxy and then edit /etc/tor/torrc:

ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy
UseBridges 1
Bridge obfs4 IP_ADDRESS:PORT FINGERPRINT_HERE cert=CERTIFICATE_HERE iat-mode=0

Of course, with the actual IP address, port, fingerprint and in case of obfs4 certificate, too.

In each case, restart Tor and that’s all there is to it!

Android 10

If you are running Android 10, you might have issues connecting to an obfs4 bridge with Orbot, but you can actually use this same method in Android 10 within Termux (get it from F-Droid)!

Inside Termux, simply run:

pkg update
pkg install tor obfs4proxy nano
nano ../usr/etc/tor/torrc

And edit the torrc file like above, except instead of pointing to /usr/bin/obfs4proxy you will be pointing to /data/data/com.termux/files/usr/bin/obfs4proxy

Conclusion

Again, super quick and easy to do! Read my previous guides on how to set up Tor and how to set up an obfs4 bridge!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.