Set Up a Tor Node on Windows 10

Tor relays can be either guard/bridge nodes, middle nodes, or exit nodes. It is recommended that you do not run an exit node from home. For a bridge you should have at least 1 Mbit/s (Mbps) of bandwidth to spare, and for a guard node or middle node you should have at least 10 Mbit/s (Mbps) of bandwidth to spare. You will also need at least 200 GB of traffic to donate (100 GB upload and 100 GB download). You should also have at least 1 GB of free RAM on your computer to run Tor.

You will need a public IPv4 address that remains fixed for at least several hours at a time. If you are behind a router that does Network Address Translation (NAT), you will need to be able to port forward Tor-related ports (e.g. your ORPort) from your router to the machine that runs Tor.

Your computer clock needs to be set to the correct time.

When you have met all the requirements, proceed as follows.

Download Tor Expert Bundle to your Windows machine:

  1. Open a browser and visit https://www.torproject.org/download/tor
  2. Download Windows Expert Bundle, which will be named, for example, tor-win32-0.4.1.6.zip
  3. Right-click and select Extract All from tor-win32-0.4.1.6.zip (or whatever your downloaded zip file is named)
  4. Copy the unzipped folder tor-win32-0.4.1.6 from Downloads to the root of your C:\ drive
  5. Rename C:\tor-win32-0.4.1.6 to C:\Tor

In Notepad create a torrc file as follows. In the example below:

  • We limit Tor usage to 30 GB per day, which works out to just under 1,000 GB per month
  • We reject all attempts to exit from this node, so the Tor network will use this as a guard node or a middle node only

Log notice file C:\\Tor\\tor.log
ORPort 9001
ExitPolicy reject *:*
GeoIPFile C:\\Tor\\Data\\Tor\\geoip
GeoIPv6File C:\\Tor\\Data\\Tor\\geoip6
AccountingStart day 0:00
AccountingMax 30 GBytes
AccountingRule sum
ContactInfo yourname@example.com
Nickname MyFirstNode


Make appropriate substitutions for the sample AccountingMax, ContactInfo, and Nickname in the above example.

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

Open your firewall for inbound Tor connections:

  1. Open Windows Defender Firewall with Advanced Security
  2. Select Inbound Rules
  3. Select New Rule
  4. Add new rule for Port, TCP 9001, Allow the Connection, Domain/Private/Public, Name Tor ORPort

In a typical home situation, you will also need to open port TCP 9001 on your router and forward TCP 9001 from your router to your PC. In some cloud environments, you will need to open the Security Group for your Windows machine.

Run a Windows Command Prompt (C:\Windows\System32\cmd.exe) as Administrator. When asked if you want to allow this app to make changes to your device, click Yes. Issue the command:

C:\Tor\Tor\tor.exe --service install --options -f "C:\Tor\torrc"

Tor is now running as a service named Tor Win32 Service. You can check this with the command:

net start | findstr Tor

You can view the log file with the command:

more C:\Tor\tor.log

If necessary, use the space bar on your keyboard to page through the more display.

Once the bootstrap reaches 100%, you should see a line:

Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor.

After about three hours of operation, your new node wil be searchable on https://metrics.torproject.org/rs.html

Comments

Popular posts from this blog

Shadowsocks Manager

V2-UI V2Ray User Management Panel

Shadowsocks with V2Ray Plugin for Windows and Android Clients