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
Решение вопроса – запускать два процесса Tor: один для узла, второй клиентский, и у каждого свои настройки. Один из способов сделать это (если вы начали с настройки рабочего Tor-узла):
- In the relay Tor torrc file, simply set the SocksPort to 0.
- Create a new client torrc file from the torrc.sample and ensure it uses a different log file from the relay. Например, "torrc.client" и "torrc.relay".
- Modify the Tor client and relay startup scripts to include
-f /path/to/correct/torrc. - In Linux/BSD/macOS, changing the startup scripts to
Tor.clientandTor.relaymay make separation of configs easier.