Skip to content

Commit

Permalink
Add back bwscanner files
Browse files Browse the repository at this point in the history
because sbws is now using chutney and it would be better the
files are maintained as part of chutney.
This will also help to reproduce #40013 .
  • Loading branch information
juga0 committed Mar 5, 2021
1 parent d368cb5 commit 55867ee
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions networks/bwscanner
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# By default, Authorities are not configured as exits
Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
# #40013: All the relays get the EXIT flag
# The relay-non-exit.tmpl includes the relay-non-dir.tmpl, which includdes
# `${include:common.i} ExitRelay=0` and common.i generates a torrc file with
# ExitRelay 0
# ExitRelay 0
# ExitPolicy reject *:*
NonExitRelay = Node(tag="m", relay=1, exit=0, torrc="relay-non-exit.tmpl")
ExitRelay = Node(tag="r", relay=1, exit=1, torrc="relay.tmpl")
Client = Node(tag="c", client=1, torrc="client_bwscanner.tmpl")
RelayMAB = Node(tag="relay1mbyteMAB", relay=1, exit=1, torrc="relay-MAB.tmpl")
RelayMBR = Node(tag="relay1mbyteMBR", relay=1, exit=1, torrc="relay-MBR.tmpl")

NODES = Authority.getN(3) + \
NonExitRelay.getN(7) + \
RelayMBR.getN(1) + RelayMAB.getN(1) + \
ExitRelay.getN(3) + Client.getN(1)

ConfigureNodes(NODES)
12 changes: 12 additions & 0 deletions torrc_templates/client_bwscanner.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
${include:common.i}
SocksPort $socksport
UseEntryGuards 0
UseMicroDescriptors 0
FetchDirInfoEarly 1
FetchDirInfoExtraEarly 1
FetchUselessDescriptors 1
LearnCircuitBuildTimeout 0
CircuitBuildTimeout 60
ConnectionPadding 0
__DisablePredictedCircuits 1
__LeaveStreamsUnattached 1
4 changes: 4 additions & 0 deletions torrc_templates/relay-MAB.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
${include:relay-non-exit.tmpl}

Nickname relay1mbyteMAB
MaxAdvertisedBandwidth 1 MBytes
4 changes: 4 additions & 0 deletions torrc_templates/relay-MBR.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
${include:relay-non-exit.tmpl}

Nickname relay1mbyteMBR
RelayBandwidthRate 1 MBytes

0 comments on commit 55867ee

Please sign in to comment.