Solved Tor not starting

hotzenplotz

New Member


Messages: 17

Hi,

I just recently started using FreeBSD after coming from linux.

I'm trying to run my traffic through tor, using the instructions in this post.

After installing tor using

Bash:
pkg ins tor

I made the following changes:

To /etc/rc.conf:
Code:
tor_enable="YES"

To /etc/sysctl.conf:
Code:
# prevent traffic analysis that exploits sequential IP IDs
net.inet.ip.random_id=1

When I then run 'service tor start', I get the following errors:
Code:
/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

When I run the same with sudo, the warning is:

Code:
Apr 20 21:16:26.675 [notice] Opening Socks listener on 127.0.0.1:9050
Apr 20 21:16:26.675 [notice] Opened Socks listener connection (ready) on 127.0
.0.1:9050
Apr 20 21:16:26.675 [warn] Fixing permissions on directory /var/db/tor


And tor is not running. I couldn't find anything specific on the search engines. What am I doing wrong here? Thanks!

EDIT: It actually was running after using sudo.... not sure how to delete this question now... thanks anyway :)
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 10,991
Messages: 36,924

Services should always be started as root (or through sudo(8) but that's basically the same thing). Looking at the output it looks like the service is actually up and running. Does sockstat -46 show that port 9050 as open? Then it's running. Now you need to configure your browser (or whatever) to use it as a proxy (it's a SOCKS proxy).
 
Top