Include in Tor Relay Guide doc instructions on how to deploy relay in OpenBSD
Tor Relay Guide doesn't provide any information about how to setup relay in OpenBSD. Is there any reason for this?
Here's the step by step:
OpenBSD
- Add these rules in pf file /etc/pf.conf
pass in log on egress proto tcp from any to any port { 9001 }
pass out log on egress proto tcp from any to any port { 9001 }
- Enable the new rules
pfctl -f /etc/pf.conf
- Configure the repository
echo https://ftp.openbsd.org/pub/OpenBSD >> /etc/installurl
- Install the tor package
pkg_add tor
- Put the configuration file /usr/local/etc/tor/torrc in place.
#change the nickname "myNiceRelay" to a name that you like
Nickname myNiceRelay
ORPort 9001
ExitRelay 0
SocksPort 0
# Change the email address bellow and be aware that it will be published
ContactInfo tor-operator@your-emailaddress-domain
Log notice syslog
- Start the tor daemon and make sure it starts at boot:
rcctl enable tor
rcctl start tor
More information: https://torbsd.org/2017/02/27/running-openbsd-current-for-tor-relays.html