What is Nostr?
nostrbird
npub1zgm…gl9g
2023-11-29 07:21:23

nostrbird on Nostr: How to try #PoW in Tor #Onion If you operate an Onion Service and believe that it may ...


How to try #PoW in Tor #Onion

If you operate an Onion Service and believe that it may be subject to high traffic or even a DoS attack, you may help Tor by giving feedback about the PoW protection.

To setup the PoW protection, please follow the steps outlined at the Onion Services DoS Guidelines page 18. This involves:

Using a GPL-covered C Tor binary version 0.4.8.4 onwards (your software distribution may already provide it or you might need to compile it yourself).

Enable the protection for each of your Onion Services with HiddenServicePoWDefensesEnabled 1.

Monitor your services with MetricsPort (be careful to not expose this port publicly) and tools like Prometheus 5 and Grafana.

Tune HiddenServicePoWQueueRate and HiddenServicePoWQueueBurst for each Onion Service as needed.

During DoS attacks, you might also want to increase verbosity on your logs for a short while to help understanding what’s going on. To do that, use a Log configuration like this:

Log info file /var/log/tor/info.log
Author Public Key
npub1zgmlhfzm0hmhknx2ygyac6xjpzj05uuyensrk5lvdjrzx5mst4ksdmgl9g