无法在 FreeBSD 上将 TOR 作为守护进程启动

无法在 FreeBSD 上将 TOR 作为守护进程启动

我试图理解为什么 TOR 没有在我的 FreeBSD 13.2 上作为服务启动。这是我在启动过程中看到的错误消息:

[notice] Tor 0.4.8.9 running on FreeBSD with Libevent 2.1.12-
stable, OpenSSL 1.1.1t-freebsd, Zlib 1.2.13, Liblzma 5.4.1, Libzstd
1.5.5 and BSD 1302001 as libc.

[notice] Tor can't help you if you use it wrong! Learn how to be
safe at [URL]https://support.torproject.org/faq/staying-anonymous
/[/URL] 

[notice] Read configuration file "/usr/local/etc/tor/torrc". 

[notice] You configured a non-loopback address '192.168.1.2:9100'
for SocksPort. This allows everybody on your local network to use 
your machine as a proxy. Make sure this is what you wanted. 

[notice] Opening Socks listener on 127.0.0.1:9050 

[notice] Opened Socks listener connection (ready) on 127.0.0.1:9050

[notice] Opening Socks listener on 192.168.1.2:9100 

[notice] Opened Socks listener connection (ready) on 
192.168.1.2:9100 

[warn] /var/db/tor is not owned by this user (_tor, 256) but by
root (0). Perhaps you are running Tor as the wrong user? 

[notice] Closing partially-constructed Socks listener connection
(ready) on 127.0.0.1:9050 

[notice] Closing partially-constructed Socks listener connection 
(ready) on 192.168.1.2:9100

[warn] Failed to parse/validate config: Couldn't create private 
data directory "/var/db/tor" 

[err] Reading config failed--see warnings above. 

/etc/rc: WARNING: failed to start tor

这是 TOR 配置文件:

SOCKSPort 9050
SOCKSPort 192.168.1.2:9100 
RunAsDaemon 1
DataDirectory /var/db/tor
Nickname me
ContactInfo me <[email protected]>
ExitRelay 0
ExitNodes {ch} StrictNodes 0

相关内容