|
|
== NetBSD ==
|
|
|
## NetBSD
|
|
|
|
|
|
1. Setup `pkg_add`:
|
|
|
|
|
|
{{{
|
|
|
```
|
|
|
# echo "PKG_PATH=http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All" > /etc/pkg_install.conf
|
|
|
}}}
|
|
|
```
|
|
|
|
|
|
2. Install the `tor` package:
|
|
|
|
|
|
{{{
|
|
|
```
|
|
|
# pkg_add tor
|
|
|
}}}
|
|
|
```
|
|
|
|
|
|
''**NOTE:** if you want to install a newer version of Tor on NetBSD, you might need to use `pkgsrc`. please refer to its [https://www.netbsd.org/docs/pkgsrc/users-guide.html users guide], checking out the [https://www.netbsd.org/docs/pkgsrc/getting.html#getting-via-cvs current] branch.
|
|
|
''**NOTE:** if you want to install a newer version of Tor on NetBSD, you might need to use `pkgsrc`. please refer to its [users guide](https://www.netbsd.org/docs/pkgsrc/users-guide.html), checking out the [current](https://www.netbsd.org/docs/pkgsrc/getting.html#getting-via-cvs) branch.
|
|
|
|
|
|
3. Edit `/usr/pkg/etc/tor/torrc`:
|
|
|
|
|
|
{{{
|
|
|
```
|
|
|
Nickname myBSDRelay # CHANGE THE NICKNAME
|
|
|
ContactInfo your@email # WRITE YOUR EMAIL ADDRESS AND BE AWARE THAT IT WILL BE PUBLISHED
|
|
|
ORPort 443 # TRY USING A DIFFERENT PORT IF 443 DOES NOT WORK FOR YOU
|
|
|
ExitRelay 0
|
|
|
SocksPort 0
|
|
|
Log notice syslog
|
|
|
}}}
|
|
|
```
|
|
|
|
|
|
4. Enable/Start the service:
|
|
|
|
|
|
{{{
|
|
|
```
|
|
|
# ln -sf /usr/pkg/share/examples/rc.d/tor /etc/rc.d/tor
|
|
|
# echo "tor=YES" >> /etc/rc.conf
|
|
|
# /etc/rc.d/tor start
|
|
|
}}} |
|
|
\ No newline at end of file |
|
|
``` |
|
|
\ No newline at end of file |