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. Follow the instructions to enable automatic software updates for your operating system.
2. Install tor
To install the tor
package on Void Linux, considering you are already on an up-to-date system:
# xbps-install -S tor
3. Install obfs4proxy
We are opting here to install and use obfs4
as pluggable transport, so we are going to install obfs4proxy
.
Once we can rely on an official opbfs4proxy
package provided by the Void Linux's maintainers, this is how we install it:
# xbps-install -S obfs4proxy
- For more information on installing or building
obfs4proxy
from source, please refer to its official docummentation.
4. Edit your Tor config file, usually located at /etc/tor/torrc
and replace its content with:
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. Enable and Start tor
Different from most recent distributions, Void Linux does not uses systemd; it uses runit instead.
To enable tor
's service on a booted system:
# ln -s /etc/sv/tor /var/service/.
Once you enabled the service, it will automatically start. If you already started the tor
daemon before and made changes do its configurations, you can restart it with:
# sv restart 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. ملاحظات نهائية
إذا كنت تواجه مشكلة في إعداد الجسر ، فقم بإلقاء نظرة على قسم المساعدة الخاص بنا. إذا كان الجسر الخاص بك يعمل الآن ، فتحقق من ملاحظات ما بعد التثبيت.