我在添加第二个 *.onion 地址时遇到一些问题。我添加了以下内容:
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
HiddenServiceDir /var/lib/tor/hidden_service2/
HiddenServicePort 80 127.0.0.1:8081
在torrc-file
, 中,第一个 *.onion 域是可访问的,但第二个是不可访问的。我能做些什么?
我的设置是: Debian Buster 上的 apache2-Server,并安装了 keyhelp。我已将 *.onion 域添加到现有客户(也具有 Clearnet 域),并且两者均可访问。所以我添加了一个新客户,在 中添加了额外的两行torrc
,获得了新的 *.onion 域,这是我在目录中重新启动 Tor 后在新客户处添加的hidden_service2
,但这无法通过 Tor 浏览器访问。
这是日志:
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8197]: Interrupt: exiting cleanly.
Dez 09 16:43:35 XXXXXXX.XXXXX.de systemd[1]: Stopping Anonymizing overlay network for TCP...
Dez 09 16:43:35 XXXXXXX.XXXXX.de systemd[1]: [email protected]: Succeeded.
Dez 09 16:43:35 XXXXXXX.XXXXX.de systemd[1]: Stopped Anonymizing overlay network for TCP.
Dez 09 16:43:35 XXXXXXX.XXXXX.de systemd[1]: Starting Anonymizing overlay network for TCP...
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8704]: Dec 09 16:43:35.337 [notice] Tor 0.4.1.6 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1d
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8704]: Dec 09 16:43:35.338 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https:/
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8704]: Dec 09 16:43:35.339 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8704]: Dec 09 16:43:35.339 [notice] Read configuration file "/etc/tor/torrc".
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8704]: Configuration was valid
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8706]: Dec 09 16:43:35.474 [notice] Tor 0.4.1.6 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1d
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8706]: Dec 09 16:43:35.475 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https:/
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8706]: Dec 09 16:43:35.475 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8706]: Dec 09 16:43:35.475 [notice] Read configuration file "/etc/tor/torrc".
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8706]: Dec 09 16:43:35.480 [notice] Opening Socks listener on 127.0.0.1:9050
Dez 09 16:43:35 XXXXXXX.XXXXX.de tor[8706]: Dec 09 16:43:35.481 [notice] Opened Socks listener on 127.0.0.1:9050
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: We compiled with OpenSSL 1010103f: OpenSSL 1.1.1c 28 May 2019 and we are running with OpenSSL 10101
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Tor 0.4.1.6 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1d, Zlib 1.2.11, Liblzma 5.2.4,
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Read configuration file "/etc/tor/torrc".
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Opening Socks listener on 127.0.0.1:9050
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Opened Socks listener on 127.0.0.1:9050
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 0% (starting): Starting
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Starting with guard context "default"
Dez 09 16:43:35 XXXXXXX.XXXXX.de systemd[1]: Started Anonymizing overlay network for TCP.
Dez 09 16:43:35 XXXXXXX.XXXXX.de Tor[8706]: Signaled readiness to systemd
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 5% (conn): Connecting to a relay
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Opening Socks listener on /run/tor/socks
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Opened Socks listener on /run/tor/socks
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Opening Control listener on /run/tor/control
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Opened Control listener on /run/tor/control
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 10% (conn_done): Connected to a relay
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 14% (handshake): Handshaking with a relay
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 15% (handshake_done): Handshake with a relay done
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
Dez 09 16:43:36 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Dez 09 16:43:37 XXXXXXX.XXXXX.de Tor[8706]: Bootstrapped 100% (done): Done
答案1
我按如下方式更改了端口:
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
HiddenServiceDir /var/lib/tor/hidden_service2/
HiddenServicePort 80 127.0.0.1:80
现在我可以在 keyhelp 中管理生成的洋葱域并将其添加到用户。我想这里 keyhelp 接管了域的分配。