dperson / torproxy

GNU Affero General Public License v3.0
520 stars 146 forks source link

Reading config failed--see warnings above. #50

Closed adolfaka closed 4 years ago

adolfaka commented 4 years ago

A bug was found. When executing the command "tor --hash-password '$ passwd'") ">> $ file the warning is written to torrc

Jun 24 05:56:10.612 [notice] Tor 0.4.3.5 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma 5.2.5, and Libzstd 1.4.5. Jun 24 05:56:10.612 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Jun 24 05:56:10.612 [warn] Tor was compiled with zstd 1.4.4, but is running with zstd 1.4.5. For safety, we'll avoid using advanced zstd functionality. Jun 24 05:56:10.612 [notice] Read configuration file "/etc/tor/torrc". Jun 24 05:56:10.616 [warn] Failed to parse/validate config: Unknown option '16:78A34DBD9752DA0860BB12BFEC701E573471E808149BC4F9A48E635301'. Failing. Jun 24 05:56:10.616 [err] Reading config failed--see warnings above. Jun 24 05:56:26.180 [notice] Tor 0.4.3.5 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma 5.2.5, and Libzstd 1.4.5. Jun 24 05:56:26.180 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Jun 24 05:56:26.180 [warn] Tor was compiled with zstd 1.4.4, but is running with zstd 1.4.5. For safety, we'll avoid using advanced zstd functionality. Jun 24 05:56:26.180 [notice] Read configuration file "/etc/tor/torrc". Jun 24 05:56:26.185 [warn] Failed to parse/validate config: Unknown option '16:78A34DBD9752DA0860BB12BFEC701E573471E808149BC4F9A48E635301'. Failing. Jun 24 05:56:26.185 [err] Reading config failed--see warnings above. Service exited 'tor sha256:44b9128d05bc5a9cb35fd69237798b30b6d25a05e66be26ecff3a522bb627179' Killing service 'tor sha256:44b9128d05bc5a9cb35fd69237798b30b6d25a05e66be26ecff3a522bb627179' Killed service 'tor sha256:44b9128d05bc5a9cb35fd69237798b30b6d25a05e66be26ecff3a522bb627179'

/etc/tor/torrc

ControlSocket /etc/tor/run/control
ControlSocketsGroupWritable 1
ControlPort 0.0.0.0:9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /etc/tor/run/control.authcookie
DataDirectory /var/lib/tor
RunAsDaemon 0
User tor
AutomapHostsOnResolve 1
ExitPolicy reject *:*
VirtualAddrNetworkIPv4 10.192.0.0/10
DNSPort 5353
SocksPort 0.0.0.0:9050 IsolateDestAddr
TransPort 0.0.0.0:9040
16:2CC93A3B5764D36C6001BF884CD278AFF4336326042AA58E1D8470F031
16:319987E84BC502E6601EA96885CBFF6AAD141A39478E263D63861D4CC4
16:EE6354F29D5D98A26048E257EF357272E8526EF7C45B11DCEE8F59813A
16:BA6B90FE5F36C24860CB31B665E4DA91582BA768151C49523A2433996E
16:A875BDE9A7849A6E6054762054252C971F5270B50FE8D9FFEF6901B52B
16:1E2E6317C73B0DE86092654F923467F46CBF8730B1C98525D231A7BF2E
16:5864150FFF9EEE0160110538AD434B66B2B948E81A4334F0203D27E9D1
StrictNodes 1
ExitNodes {NL}, {FR}, {GB}, {DE}, {LU}, {IT}, {CZ}, {IE}, {CH}, {SE}, {PL}, {ES}, {DK}, {MD}, {LV}, {UA}, {BG}, {EE}, {RO}, {TR}, {IL}, {US}, {CA}, {CY}
HashedControlPassword Jun 30 05:29:21.666 [warn] Tor was compiled with zstd 1.4.4, but is running with zstd 1.4.5. For safety, we'll avoid using advanced zstd functionality.
16:EEFFE1FB5254BA26607230ECAF2F645A9F77BD41E8DEA376E76487C48B
bash-5.0# su - tor -s/bin/bash -c "tor --hash-password Tor"
Jun 30 05:51:52.365 [warn] Tor was compiled with zstd 1.4.4, but is running with zstd 1.4.5. For safety, we'll avoid using advanced zstd functionality.
16:DF569BE55A4D6BB560F58A8DD8F203C94B4418E5FFB550D0CA0EBB6044