pkg install os-tor-devel
sudo -u _tor tor
magic@opnsense:~ % sudo -u _tor torSep 24 13:56:30.129 [notice] Tor 0.3.0.10 (git-c33db290a9d8d0f9) running on FreeBSD with Libevent 2.1.8-stable, OpenSSL 1.0.2l and Zlib 1.2.8.Sep 24 13:56:30.129 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warningSep 24 13:56:30.129 [notice] Read configuration file "/usr/local/etc/tor/torrc".Sep 24 13:56:30.132 [notice] Opening Socks listener on 127.0.0.1:9050Sep 24 13:56:30.000 [notice] Parsing GEOIP IPv4 file /usr/local/share/tor/geoip.Sep 24 13:56:30.000 [notice] Parsing GEOIP IPv6 file /usr/local/share/tor/geoip6.Sep 24 13:56:30.000 [notice] Bootstrapped 0%: StartingSep 24 13:56:31.000 [notice] Starting with guard context "default"Sep 24 13:56:31.000 [notice] Bootstrapped 5%: Connecting to directory serverSep 24 13:56:31.000 [notice] Bootstrapped 10%: Finishing handshake with directory serverSep 24 13:56:31.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connectionSep 24 13:56:31.000 [notice] Bootstrapped 20%: Asking for networkstatus consensusSep 24 13:56:31.000 [notice] Bootstrapped 25%: Loading networkstatus consensusSep 24 13:56:31.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus.Sep 24 13:56:31.000 [notice] Bootstrapped 40%: Loading authority key certsSep 24 13:56:31.000 [notice] Bootstrapped 45%: Asking for relay descriptorsSep 24 13:56:31.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/6775, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)Sep 24 13:56:31.000 [notice] Bootstrapped 50%: Loading relay descriptorsSep 24 13:56:32.000 [notice] Bootstrapped 56%: Loading relay descriptorsSep 24 13:56:32.000 [notice] Bootstrapped 64%: Loading relay descriptorsSep 24 13:56:34.000 [notice] Bootstrapped 71%: Loading relay descriptorsSep 24 13:56:34.000 [notice] Bootstrapped 78%: Loading relay descriptorsSep 24 13:56:35.000 [notice] Bootstrapped 80%: Connecting to the Tor networkSep 24 13:56:35.000 [notice] Bootstrapped 85%: Finishing handshake with first hopSep 24 13:56:35.000 [notice] Bootstrapped 90%: Establishing a Tor circuitSep 24 13:56:35.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.Sep 24 13:56:35.000 [notice] Bootstrapped 100%: Done
magic@opnsense:~ % configctl tor startOKmagic@opnsense:~ % service tor startCannot 'start' tor. Set tor_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.magic@opnsense:~ % service tor onestart/usr/local/etc/rc.d/tor: WARNING: /var/db/tor is not a directory./usr/local/etc/rc.d/tor: WARNING: failed precmd routine for tor
magic@opnsense:~ % sudo service tor startStarting tor.Sep 24 17:07:35.002 [notice] Tor 0.3.0.10 (git-c33db290a9d8d0f9) running on FreeBSD with Libevent 2.1.8-stable, OpenSSL 1.0.2l and Zlib 1.2.8.Sep 24 17:07:35.002 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warningSep 24 17:07:35.002 [notice] Read configuration file "/usr/local/etc/tor/torrc".Sep 24 17:07:35.006 [warn] You specified a public address 'xxx.xxx.191.150:9050' for SocksPort. Other people on the Internet might find your computer and use it as an open proxy. Please don't allow this unless you have a good reason.Sep 24 17:07:35.006 [notice] Your ContactInfo config option is not set. Please consider setting it, so we can contact you if your server is misconfigured or something else goes wrong.Sep 24 17:07:35.006 [notice] Based on detected system memory, MaxMemInQueues is set to 1281 MB. You can override this by setting MaxMemInQueues by hand.Sep 24 17:07:35.007 [warn] You specified a public address 'xxx.xxx.191.150:9050' for SocksPort. Other people on the Internet might find your computer and use it as an open proxy. Please don't allow this unless you have a good reason.Sep 24 17:07:35.007 [notice] Opening Socks listener on 127.0.0.1:9050Sep 24 17:07:35.007 [notice] Opening Socks listener on [::1]:9050Sep 24 17:07:35.007 [notice] Opening Socks listener on xxx.xxx.191.150:9050Sep 24 17:07:35.007 [notice] Opening Control listener on 127.0.0.1:9051Sep 24 17:07:35.007 [notice] Opening OR listener on xxx.xxx.191.150:9001Sep 24 17:07:35.000 [warn] Couldn't open file for 'Log debug file /var/log/tor.log': Permission deniedSep 24 17:07:35.000 [notice] Closing partially-constructed Socks listener on 127.0.0.1:9050Sep 24 17:07:35.000 [notice] Closing partially-constructed Socks listener on ::1:9050Sep 24 17:07:35.000 [notice] Closing partially-constructed Socks listener on xxx.xxx.191.150:9050Sep 24 17:07:35.000 [notice] Closing partially-constructed Control listener on 127.0.0.1:9051Sep 24 17:07:35.000 [notice] Closing partially-constructed OR listener on xxx.xxx.191.150:9001Sep 24 17:07:35.000 [warn] Failed to parse/validate config: Failed to init Log options. See logs for details.Sep 24 17:07:35.000 [err] Reading config failed--see warnings above./usr/local/etc/rc.d/tor: WARNING: failed to start tor
Sep 24 17:07:35.000 [warn] Couldn't open file for 'Log debug file /var/log/tor.log': Permission denied