Skip to content

Instantly share code, notes, and snippets.

@HarshitRuwali
Last active April 4, 2024 09:13
Show Gist options
  • Save HarshitRuwali/ef72d898172dae1e7a8ad194274342ef to your computer and use it in GitHub Desktop.
Save HarshitRuwali/ef72d898172dae1e7a8ad194274342ef to your computer and use it in GitHub Desktop.
Using TOR obsf4 bridges from torrc for Mac's.

Install tor via HomeBrew and start the tor serivce.

brew install tor && brew services start tor

And to use obsf4 proxy we need to install its library/ Use HomeBrew for installation of the library.

brew install obfs4proxy

https://formulae.brew.sh/formula/obfs4proxy

Get the obsf4 bridges from https://bridges.torproject.org/options or send email to bridges@torproject.org with body get transport obfs4.

Edit the torrc file (/usr/local/etc/tor/torrc) and add the following

# Using Bridges, obsf4
UseBridges 1
ClientTransportPlugin obfs4 exec /usr/local/bin/obfs4proxy managed

# send email to bridges@torproject.org with body `get transport obfs4` you can get new bridges.
# Or use https://bridges.torproject.org/options
# Paste the obsf4 bridges here and put Bridge in front of each.
Bridge obfs4 78.194.206.56.. B80190D0C0771298F04AE56L..... cert=61xl3nF07Ssg... iat-mode=0
Bridge obfs4 185.220.101.17.. 59F4CBDE79D51FEC12AC1F4304D006C97D4.. cert=p9L6... iat-mode=0
Bridge obfs4 185.220.101.17.. 59F4CBDE79D51FEC12AC1F4304D006C97D4.. cert=p9L6... iat-mode=2

Now restart the TOR service using

brew services restart tor

And it works fine. enter image description here

To change the circuit run

brew services reload tor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment