shadow.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. general:
  2. stop_time: 30m
  3. bootstrap_end_time: 120s
  4. network:
  5. graph:
  6. # use a built-in network graph containing
  7. # a single vertex with a bandwidth of 1 Gbit
  8. type: 1_gbit_switch
  9. hosts:
  10. server:
  11. network_node_id: 0
  12. ip_addr: 100.0.0.3
  13. processes:
  14. - path: mgen-server
  15. args: [server.crt, server.key, 100.0.0.3:6397]
  16. start_time: 300s
  17. expected_final_state: running
  18. web:
  19. network_node_id: 0
  20. ip_addr: 100.0.0.2
  21. processes:
  22. - path: mgen-web
  23. args: [server.crt, server.key, 100.0.0.2:6398]
  24. start_time: 300s
  25. expected_final_state: running
  26. client1: &client_host
  27. network_node_id: 0
  28. processes:
  29. - path: mgen-client
  30. args: "*.yaml"
  31. start_time: 310s
  32. expected_final_state: running
  33. environment: {RUST_LOG: "trace"}
  34. - path: tor
  35. args: --Address torclient --Nickname torclient
  36. --defaults-torrc torrc-defaults -f torrc
  37. start_time: 100
  38. expected_final_state: running
  39. client2: *client_host
  40. client3: *client_host
  41. 4uthority:
  42. network_node_id: 0
  43. ip_addr: 100.0.0.1
  44. processes:
  45. - path: tor
  46. args: --Address 4uthority --Nickname 4uthority
  47. --defaults-torrc torrc-defaults -f torrc
  48. start_time: 1
  49. expected_final_state: running
  50. exit1:
  51. network_node_id: 0
  52. processes:
  53. - path: tor
  54. args: --Address exit1 --Nickname exit1
  55. --defaults-torrc torrc-defaults -f torrc
  56. start_time: 60
  57. expected_final_state: running
  58. exit2:
  59. network_node_id: 0
  60. processes:
  61. - path: tor
  62. args: --Address exit2 --Nickname exit2
  63. --defaults-torrc torrc-defaults -f torrc
  64. start_time: 60
  65. expected_final_state: running
  66. relay1:
  67. network_node_id: 0
  68. processes:
  69. - path: tor
  70. args: --Address relay1 --Nickname relay1
  71. --defaults-torrc torrc-defaults -f torrc
  72. start_time: 60
  73. expected_final_state: running
  74. relay2:
  75. network_node_id: 0
  76. processes:
  77. - path: tor
  78. args: --Address relay2 --Nickname relay2
  79. --defaults-torrc torrc-defaults -f torrc
  80. start_time: 60
  81. expected_final_state: running
  82. relay3:
  83. network_node_id: 0
  84. processes:
  85. - path: tor
  86. args: --Address relay3 --Nickname relay3
  87. --defaults-torrc torrc-defaults -f torrc
  88. start_time: 60
  89. expected_final_state: running
  90. relay4:
  91. network_node_id: 0
  92. processes:
  93. - path: tor
  94. args: --Address relay4 --Nickname relay4
  95. --defaults-torrc torrc-defaults -f torrc
  96. start_time: 60
  97. expected_final_state: running