Tor Obfs4 Bridge on Windows

Arc Detri
2 min readOct 1, 2019

Download Windows Expert Bundle zip file from https://www.torproject.org/download/tor/. Extract all to C:\Users\yourname\Downloads\tor-win32–0.4.1.5.

Create a new folder C:\Tor. Copy the entire contents of C:\Users\yourname\Downloads\tor-win32–0.4.1.5 (Data and Tor subfolders and contents) and paste into C:\Tor folder.

Download Tor Browser for Windows from https://www.torproject.org/download/. Run the installer torbrowser-install-win64–8.5.5_en-US.exe. At the end, uncheck Run Tor Browser!! Click Finish.

Copy the application “C:\Users\yourname\Desktop\Tor Browser\Browser\TorBrowser\Tor\PluggableTransports\obfs4proxy.exe” and paste it into your “C:\Tor\Tor” folder.

obfs4proxy.exe in C:\Tor\Tor folder

Install 64-bit Notepad++ installer from https://notepad-plus-plus.org/downloads/. Run installer. Run Notepad++.

In Notepad++ create a new file. Choose your own values for ORPort, obfs4 listen address port, contact info, and nickname. These are just examples.

Log notice stdout
ORPort 2222
ExtORPort auto
BridgeRelay 1
ExitPolicy reject *:*
PublishServerDescriptor 1
ServerTransportPlugin obfs4 exec C:\Tor\Tor\obfs4proxy.exe
ServerTransportListenAddr obfs4 0.0.0.0:8443
GeoIPFile C:\Tor\Data\Tor\geoip
GeoIPv6File C:\Tor\Data\Tor\geoip6
ContactInfo yourname@example.com
Nickname MyFirstBridge

Save the file as C:\Tor\torrc (no file extension!!) and close in Notepad++.

Open Windows Defender Firewall with Advanced Security. Select Inbound Rules > New Rule. Add new rule for ports TCP 2222,8443 or whatever ports you chose.

Open Windows command prompt. Run command:

C:\Tor\Tor\tor.exe -f C:\Tor\torrc

Look out for line showing your Tor server’s identity key fingerprint, e.g. ‘MyFirstBridge 1F1B…F0FB’

Look out for line showing your Tor bridge’s hashed identity key fingerprint, e.g. ‘MyFirstBridge CD47…AB0B’.

Look out for line showing IP address of server, e.g. 188.188.188.188.

Look out for line showing self-testing indicates your ORPort is reachable from the outside.

Leave command prompt window open!!

In Windows File Explorer, do View > Hidden Items. Find file C:\Users\yourname\AppData\Roaming\tor\pt_state\obfs4_bridgeline.txt. Open in Notepad++. Take template for bridge line, e.g.

obfs4 <IP ADDRESS>:<PORT> <FINGERPRINT> cert=hKzN…FyVg iat-mode=0

Substitute in actual values for IP ADDRESS, PORT, and FINGERPRINT, e.g.

obfs4 188.188.188.188:8443 1F1B…F0FB cert=hKzN…FyVg iat-mode=0

Test by downloading and installing Tor Browser on a different PC from https://www.torproject.org/download/. Click Configure. Check Tor is censored in my country. Select Provide a bridge I know. Enter bridge line. Click Connect.

Tor is censored in my country. Provide a bridge I know.

Visit https://check.torproject.org/. Look for message Congratulations. This browser is configured to use Tor. Click i with a circle around it. Your bridge address shows.

Congratulations. This browser is configured to use Tor.

--

--