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 Arch Linux, please run:

# pacman -Syu tor

3. Install a Pluggable Transport

We are opting here to install and use obfs4 as pluggable transport, so we are going to install obfs4proxy.

Sadly there's no package available on Arch Linux's official repositories to install it, so we must either build and it from source, or use the AUR (ArchLinux User Repository).

Should you opted to use AUR, once makepkg must not run as root, here is how obfs4proxy can be installed on Arch Linux using an unprivileged user account with sudo permissions:

$ sudo pacman -Syu git
$ git clone https://aur.archlinux.org/obfs4proxy
$ cd obfs4proxy
$ makepkg -irs
  • DISCLAIMER: AUR packages are user produced content. Any use of the provided files is at your own risk.

    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
DataDirectory /var/lib/tor
User tor

# استبدل "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 .

  • لاحظ أنه يجب الوصول إلى كل من منفذ Tor's OR ومنفذ obfs4 الخاص به. إذا كان الجسر الخاص بك خلف جدار حماية أو NAT ، فتأكد من فتح كلا المنفذين. يمكنك استخدام اختبار قابلية الوصول لدينا لمعرفة ما إذا كان منفذ obfs4 الخاص بك يمكن الوصول إليه من الإنترنت.

5. Enable and Start tor

# systemctl enable --now tor
... or restart it if it was running already, so configurations take effect
# systemctl restart tor

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

إذا كنت تواجه مشكلة في إعداد الجسر ، فقم بإلقاء نظرة على قسم المساعدة الخاص بنا. إذا كان الجسر الخاص بك يعمل الآن ، فتحقق من ملاحظات ما بعد التثبيت.