Why limiting bandwidth on your Tor relay can stop you from browsing
If you run a relay and a client in the same Tor process, and have some bandwidth limits, once your relay hits its limit and goes into hibernation, your client connections stop too.
When you run a Tor relay and a Tor client in the same process, the parameters set in AccountingMax and BandwidthRate apply to both relay and client functions. したがって、Tor が休止状態になるとすぐに閲覧できなくなる可能性があります。これは、ログの以下のエントリーによって示されます。
Bandwidth soft limit reached; commencing hibernation.
No new connections will be accepted
解決策は、2つの Tor プロセスを実行することです。1つはリレー、もう1つはクライアントで、それぞれ独自の設定を行います。 これを行う1つの方法 (動作中のリレー設定から開始する場合) は、以下の通りです。
- リレー Tor torrc ファイルで SocksPort を0に設定するだけです。
- torrc.sample から新しいクライアント torrc ファイルを作成し、リレーとは異なるログファイルを使用するようにします。 torrc.client と torrc.relay という命名規則もあります。
- Tor クライアントとリレーの起動スクリプトを変更して、
-f/path/to/correct/torrcを含むよう修正します。 - Linux/BSD/macOS では、起動スクリプトを
Tor.clientとTor.relayに変更すると、設定の分離が容易になる場合があります。