1. قم بتمكين تحديثات البرامج التلقائية

One of the most important things to keep your relay secure is to install security updates timely and ideally automatically so you can not forget about it. اتبع الإرشادات لتمكين تحديثات البرامج التلقائية لنظام التشغيل الخاص بك.

2. ثبت epel-release

لتثبيت حزمة tor على CentOS / RHEL ، تحتاج أولاً إلى تثبيت مستودع EPEL:

# yum install epel-release

الإصدارات الحديثة من CentOS/RHEL تستخدم dnf بدلاً من yum:

# dnf install epel-release

إذا كنت تستخدم إصدارًا حديثًا يستخدم dnf، فالرجاء الاستمرار في استخدامه للخطوات التالية حيث يتم استدعاء yum في دليل الإعداد هذا.

3. تكوين مستودع مشروع Tor

Configuring the Tor Project's Repository for CentOS/RHEL consists basically on setting up /etc/yum.repos.d/Tor.repo with the following content:

[tor]
name=Tor for Enterprise Linux $releasever - $basearch
baseurl=https://rpm.torproject.org/centos/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://rpm.torproject.org/centos/public_gpg.key
cost=100

More information about it can be found here.

4. تركيب الحزمة

Once you are set with EPEL and the Tor repositories, you are now able to install the package:

# yum install tor

Please note that when you are installing the first package from the EPEL repository you will be asked about verifying the EPEL's GPG signing key. Please ensure the key matches with the one available on the Fedora Project website. This will also happens when installing packages from Tor's repository for the first time - again you must ensure the key matches.

5. ملف الضبط

ضع ملف التكوين / etc / tor / torrc في مكانه:

Nickname    myNiceRelay  # Change "myNiceRelay" to something you like
ContactInfo your@e-mail  # Write your e-mail and be aware it will be published
ORPort      443          # You might use a different port, should you want to
ExitRelay   0
SocksPort   0

6. تمكين وبدء tor

الإصدارات الحديثة من نظام التشغيل OS CentOS/RHEL والتي يتم شحنها مع systemd:

# systemctl enable --now tor

إذا كنت تستخدم إصدارًا قديمًا مثل CentOS/RHEL 6, فسيكون هذا:

# service tor enable
# service tor start

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

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.