This article shows you how to use a Windows 10 computer as a private obfs4 bridge to the Tor network. You could use this arrangement if you want extra privacy while you are traveling and using public Wi-Fi. You could also use it to allow a friend in a foreign country to connect to your home PC as a bridge to the Tor network.
Before you attempt to follow this procedure, check that you meet these prerequisites:
12345
as our obfs4 port. It is recommended that you change this example to a number of your own choosing.3456
as our OR port. It is recommended that you change this example to a number of your own choosing.As well as opening ports in your router’s firewall, you must also open the obfs4 port and OR port in your computer’s firewall:
firewall
.12345
in our example), and click Next.obfs4
, and click Finish.3456
in our example) named orport
.The command-line version of Tor for Windows is called the “Windows Expert Bundle.” Download and extract Windows Expert Bundle like this:
tor-win32-x.x.x.x.zip
.C:\Tor
.Downloads\tor-win32-x.x.x.x\Data
and Downloads\tor-win32-x.x.x.x\Tor
.C:\Tor
.The obfs4 executable for Windows is contained in the Tor Browser Bundle. Therefore download the TBB and extract obfs4proxy.exe
as follows:
C:\Users\sig\Desktop\Tor Browser\Browser\TorBrowser\Tor
, replacing sig
in the file name by your actual Windows user name.PluggableTransports
and its contents.C:\Tor\Tor
.Open Windows Notepad. Insert the template below:
Log notice file C:\Tor\Tor\log.txt
GeoIPFile C:\Tor\Data\Tor\geoip
GeoIPv6File C:\Tor\Data\Tor\geoip6
DataDirectory C:\Tor\Data
ORPort 0.0.0.0:3456
ExtORPort auto
BridgeRelay 1
PublishServerDescriptor 1
BridgeDistribution none
ExitPolicy reject *:*
ServerTransportPlugin obfs4 exec C:\Tor\Tor\PluggableTransports\obfs4proxy.exe
ServerTransportListenAddr obfs4 0.0.0.0:12345
ContactInfo yourname@example.com
Nickname PonteMilvio
Change the values to match your environment. In particular, substitute in your own email address and choice of bridge nickname. Also change the OR port number and the obfs4 port number to match your choices of port numbers.
Save the file as C:\Tor\Tor\torrc
. Make sure you have saved it with no file extension. It should be named torrc
, not torrc.txt
. Go into File Explorer, and check the View option for File name extensions. If necessary, rename the file from torrc.txt
to simply torrc
.
Install Tor as a new service:
command
.C:\Tor\Tor\tor.exe --service install -options -f C:\Tor\Tor\torrc
Check that your service is started in the service management console:
services
.Look in your specified log file, C:\Tor\Tor\log.txt
. After a couple of minutes, you should see a line:
[notice] Bootstrapped 100% (done): Done
.
Open File Explorer. Locate and examine the file C:\Tor\Data\pt_state\obfs4_bridgeline.txt
. You will see a starter template for your bridge line in this format:
Bridge obfs4 <IP ADDRESS>:<PORT> <FINGERPRINT> cert=WZglM4wOpFMokeKggz1KwUWcDbt3BTjPtPJZ8vLayK2a01aX//qa9EpAB18E6QaKHSs2KQ iat-mode=0
Look in your log file, C:\Tor\Tor\log.txt
. You should see a line that includes the fingerprint and looks like this:
[notice] Your Tor server's identity key fingerprint is 'PonteMilvio 577BBCF6AA0079EAE2FBE25E6A8919E460598D52'
Substitute your actual values into the template. Here is an example of a completed bridge line:
Bridge obfs4 12.34.56.78:12345 577BBCF6AA0079EAE2FBE25E6A8919E460598D52 cert=WZglM4wOpFMokeKggz1KwUWcDbt3BTjPtPJZ8vLayK2a01aX//qa9EpAB18E6QaKHSs2KQ iat-mode=0
Carry out an end-to-end test using Tor Browser from a PC with a different public IP address. Provide your obfs4 bridge line during network configuration.
If you have any problems, examine the log file, C:\Tor\Tor\log.txt
.
If you need support, have a look at the Tor Project Getting Help page.
If your bridge is running correctly, after a few hours it will be searchable by fingerprint only (not by IP address) at https://metrics.torproject.org/rs.html.