Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
Legacy
Trac
Wiki
Torrelayguide
FreeBSD
FreeBSD
· Changes
Page history
Raw import from Trac using Trac markup language.
authored
Jun 15, 2020
by
Alexander Færøy
Hide whitespace changes
Inline
Side-by-side
TorRelayGuide/FreeBSD.md
0 → 100644
View page @
53a16e3a
1.
Install the
`tor`
package:
{{{
pkg install tor ca_root_nss
}}}
**or**
for alpha releases:
{{{
pkg install tor-devel ca_root_nss
}}}
2.
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
}}}
1.
Ensure that the
`random_id`
sysctl setting is enabled:
{{{
echo "net.inet.ip.random_id=1" >> /etc/sysctl.conf
sysctl net.inet.ip.random_id=1
}}}
1.
Start the tor daemon and make sure it starts at boot:
{{{
sysrc tor_enable=YES
service tor start
}}}
Optional but recommended:
To get package updates faster after they have been build it is best to switch from the "quarterly" with "latest" repository.
Create the following folder:
{{{
mkdir -p /usr/local/etc/pkg/repos
}}}
and create the file /usr/local/etc/pkg/repos/FreeBSD.conf with the following content:
{{{
FreeBSD: { enabled: no }
FreeBSDlatest: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
}}}
\ No newline at end of file