[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [community/master] Relay guide for Windows
commit 4dbf1a2f44a92da289f107a6c526fdc316411163
Author: Sehrish Aslam <66127574+SehrishHussain@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed Apr 7 22:40:20 2021 +0500
Relay guide for Windows
Added relay guide for Windows
Made suggested corrections
Made corrections, and divided into simple sections for translation.
Removed trailing spaces
Squashed last two commits
Final Squashed all three commits
---
.../technical-setup/guard/windows/contents.lr | 89 ++++++++++++++++++++++
1 file changed, 89 insertions(+)
diff --git a/content/relay-operations/technical-setup/guard/windows/contents.lr b/content/relay-operations/technical-setup/guard/windows/contents.lr
new file mode 100644
index 0000000..8733b55
--- /dev/null
+++ b/content/relay-operations/technical-setup/guard/windows/contents.lr
@@ -0,0 +1,89 @@
+_model: page
+---
+color: primary
+---
+title: Windows
+---
+body:
+# Relay setup guide for Windows 10
+
+Setting up a Windows system as a relay requires performing a few simple steps to set up a user account, download the expert bundle, implement a torrc configuration file and start up Tor from the command line. Below are detailed instructions on how to perform these steps - please ensure you follow them very carefully, and make any of the necessary modifications outlined along the way.
+
+
+# 1. Creating a user account for Tor
+First you will need to create a new account to allow Tor to run isolated from your personal configuration as well as have manageable system permissions.
+
+1. To begin, open your Control Panel and select 'Accounts'.
+2. On the left-side menu, select 'Family & other people'.
+3. Beside the 'Add another user to this PC' subheader, click the large `+` sign.
+4. A panel will now appear asking for the Windows account information. On the bottom, select the small text that states "I do not have this users sign-in information".
+5. On the next panel, select the similar text on the bottom stating "Set up user without using a Microsoft account".
+6. Enter a username for the user. Anything you like is fine, though within this guide the username `torrelay` will be used. Then enter a strong password and continue.
+
+# 2. Downloading and configuring the Windows Expert bundle
+
+## 2.1 Downloading
+
+The next step is to download and install Windows Expert bundle as well as set up your torrc file.
+
+1. Head over to [Download Tor Source code]( https://www.torproject.org/download/tor/) and scroll down to select 'Windows Expert Bundle'.
+2. Head to your `C:\Users\torrelay\` directory.
+3. Create a folder called `tor`.
+*(Optional. A custom path can be used, though you will have to make necessary modifications in the following steps.)
+
+## 2.2 Configuration
+
+1. Unpack the zipped Expert bundle into your newly created Tor directory. Two files will be placed there; one called `Tor`, and the other `Data`.
+2. You will now need to create a torrc file to define the ruleset of your relay.
+3. The default directory path for this file is `C:\Users\torrelay\AppData\Roaming\tor\torrc`, though you can specify a custom location at commandline startup with the `-f` flag. (More below)
+4. Open up your newly created `torrc` file in your text editor and populate it with the following contents:
+
+```
+#Change the nickname "myNiceRelay" to a name that you like
+Nickname myNiceRelay
+
+ORPort 9001
+ExitRelay 0
+SocksPort 0
+#Paths assume you extracted to C:\Users\torrelay\tor - if you
+#extracted elsewhere or used a different username, adjust the
+#paths accordingly
+DataDirectory C:\Users\torrelay\tor\Data
+Log notice file C:\Users\torrelay\tor\log\notices.log
+GeoIPFile C:\Users\torrelay\tor\Data\Tor\geoip
+GeoIPv6File C:\Users\torrelay\tor\Data\Tor\geoip6
+#Put your email below - Note that it will be published on the metrics page
+ContactInfo tor-operator@your-emailaddress-domain
+```
+
+Make sure everything is filled in correctly, then save and exit.
+
+# 3. Starting up your relay
+
+There are two methods for starting up your relay for the first time depending on your preferences and needs.
+
+### 3.1 Method 1: User interface
+
+1. Navigate to the directory you extracted Tors files.
+2. Simply right-click on the `tor.exe` file and select 'Run as other user' from the drop-down menu, and enter the password for your Tor account when prompted.
+* **Note:** Be sure **not** to click the 'Run as administrator' button - this is dangerous!
+
+### 3.2 Method 2: Command line
+
+1. Open your command prompt. Navigate to `C:\Users\user\torrelay\tor\Tor` with the command `cd C:\Users\user\torrelay\tor\Tor`.
+2. Type `RUNAS /user:torrelay tor.exe` and press enter. If you have your `torrc` file somewhere other than the default location (Like the `home` folder), specify the path with the `-f` flag.
+* Example: `RUNAS /user:torrelay tor.exe -f C:\Users\user\torrelay\tor\Tor\torrc`
+3. You should now see Tor starting up in your terminal. Wait until its finished bootstrapping.
+4. After a short period it should publish its OrPort, and you will be successfully relaying traffic for the Tor Network.
+ * **Notice:** Depending on your systems settings, Tor may fail to start and produce an error indicating it is unable to create files. If this occurs, simply open the Windows Defender Security Center and select "App & browser control". Add the tor.exe file to the permissions list, then rerun `tor.exe` from the command line. Tor should now start up normally.
+---
+html: two-columns-page.html
+---
+key: 8
+---
+section: Middle/Guard relay
+---
+section_id: relay-operations
+---
+subtitle: How to deploy a middle/Guard relay on Windows
+---
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits