1. Aktiviere automatische 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. 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. Paketinstallation

Install tor NetBSD's package:

# pkg_add tor

4. Konfigurations-Datei

Put the configuration file /usr/pkg/etc/tor/torrc in place:

Nickname    myNiceRelay  # Ändere "myNiceRelay" in etwas, das dir gefällt
ContactInfo your@e-mail  # Schreib dein E-Mail und sei dir bewusst, dass es veröffentlicht werden wird
ORPort      443          # Du kannst auch einen anderen Port verwenden, wenn du das möchtest
ExitRelay   0
SocksPort   0
Log notice  syslog

5. Starte den Dienst

Hier stellen wir tor so ein, dass er während beim Systemstart startet und zum ersten Mal aufgerufen wird:

# ln -sf /usr/pkg/share/examples/rc.d/tor /etc/rc.d/tor
# echo "tor=YES" >> /etc/rc.conf
# /etc/rc.d/tor start

6. Schlussbemerkungen

Wenn du Probleme beim Einrichten deines Relays hast, schau dir unsere Hilfe-Sektion an. Wenn dein Relay jetzt läuft, schau dir die Nachinstallations-Hinweise an.