Tor on OpenBSD 7.3

created
( modified )
@nabbisen

Summary

Tor 🧅 provides highly private access 👯 to the Web ✨

This post shows how to install it and run on OpenBSD.

Environment

  • OS: OpenBSD 7.3
  • Daemon and client: Tor 0.4

Tutorial

Install

The easiest way is to use pkg_add:

$ doas pkg_add tor

The result was:

quirks-6.121 signed on 2023-06-27T13:21:34Z
tor-0.4.7.13:libevent-2.1.12p0: ok
tor-0.4.7.13: ok
The following new rcscripts were installed: /etc/rc.d/tor
See rcctl(8) for details.

Configure (Optional)

The configuration file is placed as /etc/tor/torrc.

Run the daemon

Activate it first:

$ doas rcctl enable tor

Then run:

$ doas rcctl start tor

It printed out like:

tor(ok)

Check it works

Run to test:

$ curl \
      -x socks5h://127.0.0.1:9050 \
      -s https://check.torproject.org/api/ip

You will see like:

{"IsTor":true,"IP":"xxx.xxx.xxx.xxx"}

Yes, it’s working fine and we are in the Tor network and relays :)

Conclusion

There are just few steps necessary to join Tor on OpenBSD 🌻 🧅 🐡


Comments or feedbacks are welcomed and appreciated.