1. Enable Automatic Software Updates

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. עינו בהוראות כדי לשפעל automatic software updates למערכת ההפעלה שלכם.

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 לבחירתכם.  This port must be
# שיהיה זמין מבחוץ וחייב להיות שונה מזה שהוגדר עבור  ORPort.
# המנעו מערוץ  9001 מכיון שבדרך כלל הוא מזוהה עם
# Tor וצנזורים עלולים לבצע סריקות אינטרהט לערוץ הזה.
ServerTransportListenAddr obfs4 0.0.0.0:TODO2

# ערוץ תקשורת פנימי בין  Tor ו obfs4.  תמיד הגדירו זאת כ  "auto".
# "Ext" משמעו "extended", לא "external".  אל תנסו להגדיר מספר ערוץ ספציפי
# או תאזינו על  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 or /var/log/syslog):

[notice] Your Tor server's identity key fingerprint is '<NICKNAME> <FINGERPRINT>'
[notice] Your Tor bridge's hashed identity key fingerprint is '<NICKNAME> <HASHED FINGERPRINT>'
[notice] Registered server transport 'obfs4' at '[::]:46396'
[notice] Tor has successfully opened a circuit. Looks like client functionality is working.
[notice] Bootstrapped 100%: Done
[notice] Now checking whether ORPort <redacted>:3818 is reachable... (this may take up to 20 minutes -- look for log messages indicating success)
[notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor.

7. Final Notes

If you are having trouble setting up your bridge, have a look at our help section. If your bridge is now running, check out the post-install notes.