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 კრებული:

# 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 და სულ ესაა! გახსოვდეთ, გამოიყენოთ pkg+https:// Avalon-ისთვის.

ყველა ამ ცვლილების შედეგად, შეგვიძლია განვაახლოთ კრებულების სია კვლავ და შევამოწმოთ, არის თუ არა ახალი განახლება მზად მისაღებად:

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

3. Package installation

დააყენეთ tor კრებული:

# pkg install tor

... ან დავაყენოთ საცდელი alpha-ვერსია:

# 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 გაეშვას ჩართვისას და გამოიყენოს setuid შესაძლებლობა, რომ მიებას დაბალ პორტებსაც, როგორიცაა 443 (ფონური მომსახურება ისევ ჩვეულებრივ იქნება გაშვებული, აღმატებული მომხმარებლის გარეშე).

# 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.