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.
Configuring the Tor Project's package repository for Debian/Ubuntu is documented here. Please follow those instructions before proceeding.
Ensure you update the packages database before installing the package, than call apt
to install it:
# apt update
# apt install tor
Put the configuration file /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
Contact Info is not necessary if we are running the single relay itself
Restart the tor
daemon, so your configuration changes take effect:
# systemctl restart tor@default
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.
Nyx is a command-line monitor for Tor. With this you can get detailed real-time information about your relay such as bandwidth usage, connections, logs, and much more.
https://nyx.torproject.org/#home
and here's a video to support it https://youtu.be/npg3cBJusnA?t=536