FreeBSDでTORをデーモンとして起動できません

FreeBSDでTORをデーモンとして起動できません

FreeBSD 13.2では、TORがサービスとして起動しない理由を理解しようとしています。起動中に表示されるエラーメッセージは次のとおりです。

[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

ベストアンサー1

おすすめ記事