Note: You should only run a Windows relay if you can run it 24/7. If the operator is unable to guarantee that, a Snowflake is a better way to contribute resources.

يتطلب إعداد نظام ويندوز كمرحل تنفيذ بضع خطوات بسيطة لإعداد حساب مستخدم, وتنزيل حزمة الخبراء, وتنفيذ ملف تكوين torrc وبدء تشغيل Tor من سطر الأوامر. فيما يلي إرشادات مفصلة حول كيفية تنفيذ هذه الخطوات - يرجى التأكد من اتباعها بعناية فائقة وإجراء أي من التعديلات اللازمة الموضحة على طول الطريق.

1. إنشاء حساب مستخدم لTor

ستحتاج أولاً إلى إنشاء حساب جديد للسماح لـ Tor بالعمل بمعزل عن تكوينك الشخصي بالإضافة إلى الحصول على أذونات نظام يمكن إدارتها.

  1. للبدء، افتح لوحة التحكم الخاصة بك وحدد 'Accounts'.
  2. في القائمة الموجودة على الجانب الأيسر، إختار 'Family & other people'.
  3. Beside the 'Add another user to this PC' subheader, click the large + sign.
  4. A ستظهر اللوحة الآن تطلب معلومات حساب ويندوز. في الجزء السفلي، حدد النص الصغير الذي ينص على "ليس لدي معلومات تسجيل دخول هؤلاء المستخدمين".
  5. في اللوحة التالية، حدد النص المماثل في الجزء السفلي الذي يشير إلى "إعداد المستخدم دون استخدام حساب مايكروسوفت".
  6. أدخل اسم مستخدم للمستخدم. أي شيء تريده جيد، على الرغم من أنه سيتم استخدام اسم المستخدم torrelay في هذا الدليل. ثم أدخل كلمة مرور قوية وتابع.

2. تنزيل حزمة Windows Expert وتكوينها

2.1 جارى التحميل

الخطوة التالية هي تنزيل حزمة Windows Expert وتثبيتها وكذلك إعداد ملف torrc.

  1. توجه إلى Download Tor Source code وانتقل لأسفل للتحديد'Windows Expert Bundle'.
  2. توجه إلى C:\Users\torrelay\ directory.
  3. قم بإنشاء مجلد يسمىtor. *(Optional. A custom path can be used, though you will have to make necessary modifications in the following steps.)

2.2 إعدادات

  1. قم بفك حزمة الخبراء المضغوطة في دليل Tor الذي تم إنشاؤه حديثًا. سيتم وضع ملفين هناك؛ أحدهما يسمى Tor, والآخر Data.
  2. You should now create a folder called log in C:\Users\torrelay\tor. You'll then need to create an empty file and name it notices.log in the log folder.
  3. You will now need to create a torrc file to define the ruleset of your relay.
  4. 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)
  5. Open up your newly created torrc file in your text editor and populate it with the following contents:
# تغيير اللقب "myNiceRelay" إلى الاسم الذي يعجبك
Nickname myNiceRelay
ORPort 9001
ExitRelay 0
SocksPort 0
#تفترض المسارات أنك استخرجت إلى C:\Users\torrelay\tor - إذا كنت 
#تم استخراجه في مكان آخر أو استخدام اسم مستخدم مختلف، أضبط ال 
#المسارات وفقًا لذلك
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
#ضع بريدك الإلكتروني أدناه - لاحظ أنه سيتم نشره على صفحة المقاييس
ContactInfo tor-operator@your-emailaddress-domain

تأكد من ملء كل شيء بشكل صحيح، ثم احفظه واخرج منه.

3. بدء الترحيل

هناك طريقتان لبدء الترحيل الخاص بك لأول مرة حسب تفضيلاتك واحتياجاتك.

3.1 الطريقة 1: واجهة المستخدم

  1. انتقل إلى الدليل الذي استخراج الملفات الاختصاصات.
  2. Simply Shift + 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 الطريقة 2: سطر الأوامر

  1. Open your command prompt. Navigate to C:\Users\torrelay\tor\Tor with the command cd C:\Users\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\torrelay\tor\Tor\torrc"
  1. يجب أن تشاهد الآن Tor يبدأ التشغيل في جهازك الطرفي. انتظر حتى تنتهي عملية التمهيد.
  2. بعد فترة قصيرة ، يجب أن تنشر OrPort، وسوف تقوم بنجاح بنقل حركة المرور لشبكة Tor.
    • 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.

4. ملاحظات نهائية

If you are having trouble setting up your relay, have a look at our help section. If your relay is now running, check out the post-install notes.