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. Configure Tor Project's Repository
Configuring the Tor Project's Repository for Fedora consists basically on setting up /etc/yum.repos.d/Tor.repo
with the following content:
[tor]
name=Tor for Fedora $releasever - $basearch
baseurl=https://rpm.torproject.org/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://rpm.torproject.org/fedora/public_gpg.key
cost=100
More information about it can be found here.
3. Install tor
Once you are set configuring the Tor repository, you are now able to install the package:
# dnf install tor
4. Install obfs4proxy
We are opting here to install and use obfs4
as pluggable transport, so we are going to install obfs4proxy
.
Different from other Linux distributions, Fedora offers a binary package we can use. It's available since Fedora 33.
The package is called obfs4
and this is all you need to install it:
# dnf install obfs4
For more information about installing or building obfs4proxy
from source, please refer to its official docummentation.
5. Edit your Tor config file, usually located at /etc/tor/torrc
and replace its content with:
RunAsDaemon 1
BridgeRelay 1
# استبدل "TODO1" بمنفذ Tor من اختيارك. يجب أن يكون هذا المنفذ خارجيًا
# يمكن الوصول إليه. تجنب المنفذ 9001 لأنه مرتبط عادةً بـ Tor و
# قد يقوم الرقيب بمسح الإنترنت لهذا المنفذ.
ORPort TODO1
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
# استبدل "TODO2" بمنفذ obfs4 من اختيارك. يجب أن يكون هذا المنفذ
# يمكن الوصول إليه خارجيًا ويجب أن يكون مختلفًا عن المحدد لمنفذ ORPort.
# تجنب المنفذ 9001 لأنه يرتبط بشكل شائع بـ
# قد يقوم Tor وأجهزة الاستشعار بمسح الإنترنت لهذا المنفذ.
ServerTransportListenAddr obfs4 0.0.0.0:TODO2
# منفذ اتصال محلي بين Tor و obfs4. قم دائمًا بتعيين هذا على "تلقائي".
# "Ext" تعني "ممتد" وليس "خارجي". لا تحاول تعيين منفذ معين
# رقم ، لا تستمع إلى 0.0.0.0.
ExtORPort auto
# استبدل "<address@email.com>" بعنوان بريدك الإلكتروني حتى نتمكن من الاتصال بك إذا
# هناك مشاكل في الجسر الخاص بك. هذا اختياري ولكنه مشجع.
ContactInfo <address@email.com>
# اختر لقبًا يعجبك لجسرك. هذا اختياري.
Nickname PickANickname
لا تنس تغيير خيارات ORPort
و ServerTransportListenAddr
و ContactInfo
و Nickname
.
- Note that both Tor's OR port and its obfs4 port must be reachable. If your bridge is behind a firewall or NAT, make sure to open both ports. You can use our reachability test to see if your obfs4 port is reachable from the Internet.
5. Restart Tor
# systemctl enable --now tor
6. Monitor your logs
لتأكيد أن الجسر الخاص بك يعمل بدون مشاكل ، يجب أن ترى شيئًا كهذا (عادةً في / var / log / tor / log
أو/ var / log / syslog
):
[إشعار] بصمة مفتاح هوية خادم Tor الخاص بك هي '<FINGERPRINT><NICKNAME>'
[إشعار] بصمة مفتاح الهوية المجزأة لجسر Tor الخاص بك هي '<HASHED FINGERPRINT> <NICKNAME>'
[notice] Registered server transport 'obfs4' at '[::]:46396'
[notice] Tor has successfully opened a circuit. Looks like client functionality is working.
[إشعار] Bootstrapped 100٪: تم
[إشعار] تحقق الآن مما إذا كان يمكن الوصول إلى <redacted>ORPort: 3818 ... (قد يستغرق هذا ما يصل إلى 20 دقيقة - ابحث عن رسائل السجل التي تشير إلى النجاح)
[إشعار] يشير الاختبار الذاتي إلى أنه يمكن الوصول إلى منفذ ORPort من الخارج. ممتاز. واصف خادم النشر.
7. ملاحظات نهائية
إذا كنت تواجه مشكلة في إعداد الجسر ، فقم بإلقاء نظرة على قسم المساعدة الخاص بنا. إذا كان الجسر الخاص بك يعمل الآن ، فتحقق من ملاحظات ما بعد التثبيت.