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. Setup pkg_add
Modern versions of the NetBSD operating system can be set to use pkgin
, which is a piece of software aimed to be like apt
or yum
for managing pkgsrc binary packages. We are not convering its setup here, and opt to use plain pkg_add
instead.
# echo "PKG_PATH=http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All" > /etc/pkg_install.conf
3. Install Tor
# pkg_add tor
4. Install obfs4proxy
# pkg_add install obfs4proxy
5. Edit your Tor config file, usually located at /usr/pkg/etc/tor/torrc
and replace its content with:
BridgeRelay 1
# استبدل "TODO1" بمنفذ Tor من اختيارك.
# يجب أن يكون هذا المنفذ قابلاً للوصول خارجيًا.
# تجنب المنفذ 9001 لأنه مرتبط بشكل شائع بـ Tor وقد يقوم الرقيب بمسح الإنترنت لهذا المنفذ.
ORPort TODO1
ServerTransportPlugin obfs4 exec /usr/pkg/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.
6. Start Tor
# ln -sf /usr/pkg/share/examples/rc.d/tor /etc/rc.d/tor
# echo "tor=YES" >> /etc/rc.conf
# /etc/rc.d/tor start
7. 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 من الخارج. ممتاز. واصف خادم النشر.
8. Final Notes
إذا كنت تواجه مشكلة في إعداد الجسر ، فقم بإلقاء نظرة على قسم المساعدة الخاص بنا. إذا كان الجسر الخاص بك يعمل الآن ، فتحقق من ملاحظات ما بعد التثبيت.