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. Follow the instructions to enable automatic software updates for your operating system.

2. Bootstrap pkg

DragonFlyBSD's daily snapshots and releases (starting with 3.4) come with pkg already installed. Upgrades from earlier releases, however, will not have it. If pkg is missing on the system for any reason, it can be quickly bootstrapped without having to build it from source or even having DPorts installed:

# cd /usr
# make pkg-bootstrap
# rehash
# pkg-static install -y pkg
# rehash

כאן הדבר יהיה דומה למה שעשינו במערכת FreeBSD, ואנו הולכים להשתמש ב HTTPS כדי להביא את התוכנות שלנו, והעדכונים - אז כאן אנו זקוקים לתוכנה נוספת שתעזור לנו בכך (ca_root_nss).

התקנת תוכנת ca_root_nss package:

# pkg install ca_root_nss

להתקנות טריות, הקובץ /usr/local/etc/pkg/repos/df-latest.conf.sample מועתק אל /usr/local/etc/pkg/repos/df-latest. מתעלמים מהקבצים המסתיימים ב ".sample"; pkg(8) קורא רק את הקבצים המסתיימים ב ".conf" והוא יקרא את כל אלה שימצא.

DragonflyBSD בעל 2 ספריות תוכנות:

  • Avalon (mirror-master.dragonflybsd.org);
  • Wolfpond (pkg.wolfpond.org).

אנו פשוט יכולים לעדכן את ה URL שבשימוש להצביע על הספריות ב /usr/local/etc/pkg/repos/df-latest וזהו זהi זכרו להשתמש ב pkg+https:// עבור Avalon.

לאחר שמיישמים את כל השינויים האלה, אנו מעדכנים את רשימת התוכנות שוב ומנסים לבדוק אם אם יש כבר עדכון חדש ליישם:

# pkg update -f
# pkg upgrade -y -f

3. Package installation

התקינו את תוכנת tor :

# pkg install tor

... או להתקין גירסת אלפא:

# pkg install tor-devel

4. Configuration file

Put the configuration file /usr/local/etc/tor/torrc in place

Nickname    myNiceRelay  # Change "myNiceRelay" to something you like
ContactInfo your@e-mail  # Write your e-mail and be aware it will be published
ORPort      443          # You might use a different port, should you want to
ExitRelay   0
SocksPort   0
Log notice  syslog

5. Start the service

כאן אנו מגדירים את tor להתחיל בעת הפעלת המחשב ומחברים אותו לערוץ נמוך כגון 443 (ה daemon עצמו עדיין ירוץ כמשתמש ללא פריבילגויות).

# echo "tor_setuid=YES" >> /etc/rc.conf
# echo "tor_enable=YES" >> /etc/rc.conf
# service tor start

6. הערות אחרונות

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