From 7eeb09b99ae3b59cfe2438b39a4b5df0cc2f5522 Mon Sep 17 00:00:00 2001 From: Jim Newsome Date: Tue, 15 Feb 2022 14:32:22 -0600 Subject: [PATCH 1/2] Disable guards for onion services We think the onion services' guard nodes may be getting overloaded, leading to high error rates. --- simulate.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/simulate.py b/simulate.py index f096131..b64bd19 100644 --- a/simulate.py +++ b/simulate.py @@ -167,10 +167,6 @@ def main(): # FIXME: Also need to set process scale to 1.0. See # https://gitlab.torproject.org/jnewsome/sponsor-61-sims/-/issues/5 run(['sed', '-i', 's/UseEntryGuards.*/UseEntryGuards 1/', f"{getenv('SIMDIR')}/conf/tor.client.torrc"]) - # Also enable guards for onionservices, if using a tornettools that supports onionservices. - if os.path.exists(f"{getenv('SIMDIR')}/conf/tor.onionservice.torrc"): - run(['sed', '-i', 's/UseEntryGuards.*/UseEntryGuards 1/', f"{getenv('SIMDIR')}/conf/tor.onionservice.torrc"]) - # Override authority configs with recent consensus params, from # https://consensus-health.torproject.org/#consensusparams: -- GitLab From 82e64318090b3f996f1cd196beac87fe0de335bb Mon Sep 17 00:00:00 2001 From: Jim Newsome Date: Wed, 16 Feb 2022 18:05:43 -0600 Subject: [PATCH 2/2] Disable vanguards for onion services --- simulate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simulate.py b/simulate.py index b64bd19..621c7d2 100644 --- a/simulate.py +++ b/simulate.py @@ -167,6 +167,9 @@ def main(): # FIXME: Also need to set process scale to 1.0. See # https://gitlab.torproject.org/jnewsome/sponsor-61-sims/-/issues/5 run(['sed', '-i', 's/UseEntryGuards.*/UseEntryGuards 1/', f"{getenv('SIMDIR')}/conf/tor.client.torrc"]) + with open(f"{getenv('SIMDIR')}/conf/tor.onionservice.torrc", 'a') as torrc: + torrc.write('\n') + torrc.write('VanguardsLiteEnabled 0\n') # Override authority configs with recent consensus params, from # https://consensus-health.torproject.org/#consensusparams: -- GitLab