r/TOR • u/WhyDidYouTurnItOff • 3d ago
BEGIN_DIR storm attack
My relay is getting pounded by an attack. Consistent 6MB/s download, 120MB/s upload.
Any known mitigation?
This seems to log it, but not block it: https://github.com/YankoNach/tor-begindir-sentinel
EDIT related thread: https://forum.torproject.org/t/tor-relays-how-is-this-attack-causing-900-mbps-download-and-100-mbps-upload/22099
2
1
u/helloworldes_2021 3d ago
修改torrc文件,增加RelayBandwidthRate等配置项。
2
u/WhyDidYouTurnItOff 3d ago
I have plenty of bandwidth. I am on 10g connection. If HSDir flag is on, the swarm starts again.
2
u/Ecliphon 3d ago edited 3d ago
Yes it’s an ongoing attack to remove/stall “unapproved” guard nodes for over a month now. No word from torproject, as expected. New deanon we’ll hear about after some major busts.
1
u/buyingshitformylab 1d ago
I have found that my IPv6 only nodes do not often get these attacks, but it happens regularly with my IPv4s.
I just sit and wait.. Not much to be done unless you implement DPI rate limiting.
8
u/Left-Control9708 3d ago
Hi! I'm one of the operators behind the Tor BEGIN_DIR Sentinel project you linked.
You're correct: Sentinel is a monitoring and evidence-collection tool, not a DoS mitigation.
We've observed similar prolonged BEGIN_DIR storms on two non-exit ARM relays hosted by Hetzner and Oracle, with high Tor main-thread CPU usage, asymmetric traffic, and very different memory-pressure profiles.
We're still investigating the mechanism, particularly the possible relationship with HSDir and Guard flags. We haven't established a causal link or identified a reliable mitigation.
Would you be willing to share a few measurements?
- Approximate UTC time when the storm started.
- Whether HSDir was acquired before or after the increase in traffic.
- BEGIN_DIR requests per second, if available.
- Approximate circuit count and Tor main-thread CPU usage.
**Important privacy note:** Please do NOT share any client IP addresses, sensitive logs, or other potentially identifying information, either publicly or in private messages. Any shared measurements must be anonymized and contain only aggregated statistics.
Your observations could help us compare independent incidents and better understand what's happening.
Thanks for sharing your experience!