shadow / shadow-plugin-tor

A Shadow plug-in that runs the Tor anonymity software
https://shadow.github.io
Other
49 stars 39 forks source link

Can't find circuits in client stdout #70

Closed loop0day closed 5 years ago

loop0day commented 5 years ago

I want to generate a small Tor network, so I run the code in mytor.

python ~/shadow-plugin-tor/tools/generate.py --nauths 1 --nrelays 20 --nclients 20 --nservers 20 ../alexa-top-1000-ips.csv ../2019-03-17-00-00-00-consensus ../server-descriptors-2019-03/ ../extra-infos-2019-03/ ../userstats-relay-country.csv

It shows some warns, but I can still run it with shadow shadow.conf.xml and it works fine.

However I can't find some circuits informations in client log as it shows in shadowtor-minimal project(such as exit circ info in shadow/shadow#604)

Here is my shadow.conf.xml and stdout-webclient1.tor.1000.log logs.

<shadow stoptime="3600" preload="~/.shadow/lib/libshadow-interpose.so" environment="OPENSSL_ia32cap=~0x200000200000000;EVENT_NOSELECT=1;EVENT_NOPOLL=1;EVENT_NOKQUEUE=1;EVENT_NODEVPOLL=1;EVENT_NOEVPORT=1;EVENT_NOWIN32=1">
  <topology path="~/.shadow/share/topology.graphml.xml"/>
  <plugin id="tor" path="~/.shadow/lib/libshadow-plugin-tor.so"/>
  <plugin id="tor-preload" path="~/.shadow/lib/libshadow-preload-tor.so"/>
  <plugin id="torctl" path="~/.shadow/lib/libshadow-plugin-torctl.so"/>
  <plugin id="tgen" path="~/.shadow/lib/libshadow-plugin-tgen.so"/>
  <host id="server1" iphint="185.31.27.184" geocodehint="PL" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server2" iphint="172.217.161.142" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server3" iphint="243.185.187.39" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server4" iphint="88.191.249.183" geocodehint="FR" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server5" iphint="198.35.26.96" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server6" iphint="123.125.115.110" geocodehint="CN" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server7" iphint="98.137.246.7" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server8" iphint="103.49.221.211" geocodehint="ID" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server9" iphint="208.101.21.43" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server10" iphint="205.251.242.103" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server11" iphint="204.79.197.212" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server12" iphint="104.215.148.63" geocodehint="SG" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server13" iphint="59.37.96.63" geocodehint="CN" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server14" iphint="140.205.220.96" geocodehint="CN" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server15" iphint="67.228.74.123" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server16" iphint="31.13.72.34" geocodehint="IE" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server17" iphint="140.205.130.99" geocodehint="CN" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server18" iphint="69.171.247.71" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server19" iphint="108.174.10.10" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="server20" iphint="34.234.59.120" geocodehint="US" typehint="server" bandwidthup="102400" bandwidthdown="102400" quantity="1" cpufrequency="10000000">
    <process plugin="tgen" starttime="1" arguments="conf/tgen.server.graphml.xml"/>
  </host>
  <host id="4uthority1" iphint="100.0.0.1" typehint="relay" bandwidthdown="6400" bandwidthup="6400" quantity="1" cpufrequency="2800000">
    <process plugin="tor" preload="tor-preload" starttime="5" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.authority.torrc"/>
    <process plugin="torctl" starttime="6" arguments="localhost 9051 BW"/>
  </host>
  <host id="relayexitguard1" iphint="178.175.132.213" geocodehint="MD" typehint="relay" bandwidthdown="16534" bandwidthup="15546" quantity="1" cpufrequency="2400000">
    <process plugin="tor" preload="tor-preload" starttime="60" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.exitguard.torrc --BandwidthRate 1073741824 --BandwidthBurst 1073741824"/>
    <process plugin="torctl" starttime="61" arguments="localhost 9051 BW"/>
  </host>
  <host id="relayguard1" iphint="167.114.35.107" geocodehint="CA" typehint="relay" bandwidthdown="24371" bandwidthup="24475" quantity="1" cpufrequency="2800000">
    <process plugin="tor" preload="tor-preload" starttime="95" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.guard.torrc --BandwidthRate 1073741824 --BandwidthBurst 1073741824"/>
    <process plugin="torctl" starttime="96" arguments="localhost 9051 BW"/>
  </host>
  <host id="relayguard2" iphint="188.40.238.144" geocodehint="DE" typehint="relay" bandwidthdown="14516" bandwidthup="14593" quantity="1" cpufrequency="3400000">
    <process plugin="tor" preload="tor-preload" starttime="131" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.guard.torrc --BandwidthRate 15360000 --BandwidthBurst 17408000"/>
    <process plugin="torctl" starttime="132" arguments="localhost 9051 BW"/>
  </host>
  <host id="relayguard3" iphint="51.15.227.124" geocodehint="FR" typehint="relay" bandwidthdown="11721" bandwidthup="11870" quantity="1" cpufrequency="3000000">
    <process plugin="tor" preload="tor-preload" starttime="166" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.guard.torrc --BandwidthRate 1073741824 --BandwidthBurst 1073741824"/>
    <process plugin="torctl" starttime="167" arguments="localhost 9051 BW"/>
  </host>
  <host id="relayguard4" iphint="185.189.112.162" geocodehint="DE" typehint="relay" bandwidthdown="7757" bandwidthup="7808" quantity="1" cpufrequency="3000000">
    <process plugin="tor" preload="tor-preload" starttime="201" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.guard.torrc --BandwidthRate 1073741824 --BandwidthBurst 1073741824"/>
    <process plugin="torctl" starttime="202" arguments="localhost 9051 BW"/>
  </host>
  <host id="relayguard5" iphint="163.172.90.128" geocodehint="FR" typehint="relay" bandwidthdown="4826" bandwidthup="4852" quantity="1" cpufrequency="3400000">
    <process plugin="tor" preload="tor-preload" starttime="236" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.guard.torrc --BandwidthRate 4194304 --BandwidthBurst 8388608"/>
    <process plugin="torctl" starttime="237" arguments="localhost 9051 BW"/>
  </host>
  <host id="relayguard6" iphint="31.184.198.152" geocodehint="RU" typehint="relay" bandwidthdown="6087" bandwidthup="6139" quantity="1" cpufrequency="2400000">
    <process plugin="tor" preload="tor-preload" starttime="272" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.guard.torrc --BandwidthRate 1073741824 --BandwidthBurst 1073741824"/>
    <process plugin="torctl" starttime="273" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle1" iphint="51.15.113.25" geocodehint="FR" typehint="relay" bandwidthdown="6984" bandwidthup="6986" quantity="1" cpufrequency="3000000">
    <process plugin="tor" preload="tor-preload" starttime="307" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 7168000 --BandwidthBurst 10240000"/>
    <process plugin="torctl" starttime="308" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle2" iphint="83.238.210.214" geocodehint="PL" typehint="relay" bandwidthdown="2032" bandwidthup="2038" quantity="1" cpufrequency="3200000">
    <process plugin="tor" preload="tor-preload" starttime="342" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 1966080 --BandwidthBurst 1966080"/>
    <process plugin="torctl" starttime="343" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle3" iphint="64.237.51.46" geocodehint="US" typehint="relay" bandwidthdown="3952" bandwidthup="3956" quantity="1" cpufrequency="2800000">
    <process plugin="tor" preload="tor-preload" starttime="378" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 1048576 --BandwidthBurst 10485760"/>
    <process plugin="torctl" starttime="379" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle4" iphint="95.211.205.138" geocodehint="NL" typehint="relay" bandwidthdown="11086" bandwidthup="11160" quantity="1" cpufrequency="2200000">
    <process plugin="tor" preload="tor-preload" starttime="413" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 1073741824 --BandwidthBurst 1073741824"/>
    <process plugin="torctl" starttime="414" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle5" iphint="104.131.137.159" geocodehint="US" typehint="relay" bandwidthdown="1060" bandwidthup="1062" quantity="1" cpufrequency="3000000">
    <process plugin="tor" preload="tor-preload" starttime="448" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 675840 --BandwidthBurst 4096000"/>
    <process plugin="torctl" starttime="449" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle6" iphint="84.60.182.131" geocodehint="DE" typehint="relay" bandwidthdown="1316" bandwidthup="1320" quantity="1" cpufrequency="3000000">
    <process plugin="tor" preload="tor-preload" starttime="484" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 1310720 --BandwidthBurst 2621440"/>
    <process plugin="torctl" starttime="485" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle7" iphint="51.68.106.162" geocodehint="FR" typehint="relay" bandwidthdown="410" bandwidthup="410" quantity="1" cpufrequency="2800000">
    <process plugin="tor" preload="tor-preload" starttime="519" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 358400 --BandwidthBurst 614400"/>
    <process plugin="torctl" starttime="520" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle8" iphint="213.188.245.139" geocodehint="CH" typehint="relay" bandwidthdown="257" bandwidthup="256" quantity="1" cpufrequency="3200000">
    <process plugin="tor" preload="tor-preload" starttime="554" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 204800 --BandwidthBurst 409600"/>
    <process plugin="torctl" starttime="555" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle9" iphint="126.146.92.63" geocodehint="JP" typehint="relay" bandwidthdown="3786" bandwidthup="510" quantity="1" cpufrequency="2400000">
    <process plugin="tor" preload="tor-preload" starttime="589" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 204800 --BandwidthBurst 344064"/>
    <process plugin="torctl" starttime="590" arguments="localhost 9051 BW"/>
  </host>
  <host id="relaymiddle10" iphint="90.114.31.244" geocodehint="FR" typehint="relay" bandwidthdown="121" bandwidthup="115" quantity="1" cpufrequency="2600000">
    <process plugin="tor" preload="tor-preload" starttime="625" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.middle.torrc --BandwidthRate 307200 --BandwidthBurst 819200"/>
    <process plugin="torctl" starttime="626" arguments="localhost 9051 BW"/>
  </host>
  <host id="webclient1" geocodehint="RU" typehint="client" quantity="1" cpufrequency="2600000">
    <process plugin="tor" preload="tor-preload" starttime="900" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1200" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient2" geocodehint="GB" typehint="client" quantity="1" cpufrequency="2800000">
    <process plugin="tor" preload="tor-preload" starttime="930" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1230" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient3" geocodehint="ID" typehint="client" quantity="1" cpufrequency="3200000">
    <process plugin="tor" preload="tor-preload" starttime="960" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1260" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient4" geocodehint="US" typehint="client" quantity="1" cpufrequency="2400000">
    <process plugin="tor" preload="tor-preload" starttime="990" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1290" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient5" geocodehint="RU" typehint="client" quantity="1" cpufrequency="2200000">
    <process plugin="tor" preload="tor-preload" starttime="1020" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1320" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient6" geocodehint="FR" typehint="client" quantity="1" cpufrequency="3400000">
    <process plugin="tor" preload="tor-preload" starttime="1050" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1350" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient7" geocodehint="ID" typehint="client" quantity="1" cpufrequency="2400000">
    <process plugin="tor" preload="tor-preload" starttime="1080" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1380" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient8" geocodehint="GB" typehint="client" quantity="1" cpufrequency="2600000">
    <process plugin="tor" preload="tor-preload" starttime="1110" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1410" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient9" geocodehint="DE" typehint="client" quantity="1" cpufrequency="2200000">
    <process plugin="tor" preload="tor-preload" starttime="1140" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1440" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient10" geocodehint="RU" typehint="client" quantity="1" cpufrequency="3400000">
    <process plugin="tor" preload="tor-preload" starttime="1170" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1470" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient11" geocodehint="RU" typehint="client" quantity="1" cpufrequency="2600000">
    <process plugin="tor" preload="tor-preload" starttime="1200" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1500" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient12" geocodehint="DE" typehint="client" quantity="1" cpufrequency="2600000">
    <process plugin="tor" preload="tor-preload" starttime="1230" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1530" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient13" geocodehint="US" typehint="client" quantity="1" cpufrequency="2600000">
    <process plugin="tor" preload="tor-preload" starttime="1260" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1560" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient14" geocodehint="VE" typehint="client" quantity="1" cpufrequency="2400000">
    <process plugin="tor" preload="tor-preload" starttime="1290" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1590" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient15" geocodehint="TR" typehint="client" quantity="1" cpufrequency="2200000">
    <process plugin="tor" preload="tor-preload" starttime="1320" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1620" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient16" geocodehint="DE" typehint="client" quantity="1" cpufrequency="3200000">
    <process plugin="tor" preload="tor-preload" starttime="1350" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1650" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient17" geocodehint="JP" typehint="client" quantity="1" cpufrequency="3000000">
    <process plugin="tor" preload="tor-preload" starttime="1380" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1680" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient18" geocodehint="IT" typehint="client" quantity="1" cpufrequency="3000000">
    <process plugin="tor" preload="tor-preload" starttime="1410" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1710" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient19" geocodehint="US" typehint="client" quantity="1" cpufrequency="2200000">
    <process plugin="tor" preload="tor-preload" starttime="1440" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1740" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
  <host id="webclient20" geocodehint="RU" typehint="client" quantity="1" cpufrequency="3200000">
    <process plugin="tor" preload="tor-preload" starttime="1470" arguments="--Address ${NODEID} --Nickname ${NODEID} --DataDirectory shadow.data/hosts/${NODEID} --GeoIPFile ~/.shadow/share/geoip --defaults-torrc conf/tor.common.torrc -f conf/tor.client.torrc"/>
    <process plugin="tgen" starttime="1770" arguments="conf/tgen.torwebclient.graphml.xml"/>
  </host>
</shadow>
Jan 01 00:15:00.000 [notice] Tor 0.3.5.8 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1e, Zlib 1.2.8, Liblzma 5.1.0alpha, and Libzstd N/A.
Jan 01 00:15:00.000 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jan 01 00:15:00.000 [notice] Read configuration file "/root/mytor/conf/tor.common.torrc".
Jan 01 00:15:00.000 [notice] Read configuration file "/root/mytor/conf/tor.client.torrc".
Jan 01 00:15:00.000 [warn] Skipping obsolete configuration option 'AllowInvalidNodes'
Jan 01 00:15:00.000 [warn] Skipping obsolete configuration option 'WarnUnsafeSocks'
Jan 01 00:15:00.000 [warn] Skipping obsolete configuration option 'DynamicDHGroups'
Jan 01 00:15:00.000 [warn] Skipping obsolete configuration option 'SocksListenAddress'
Jan 01 00:15:00.000 [warn] Skipping obsolete configuration option 'AllowInvalidNodes'
Jan 01 00:15:00.000 [warn] Skipping obsolete configuration option 'WarnUnsafeSocks'
Jan 01 00:15:00.000 [warn] Skipping obsolete configuration option 'DynamicDHGroups'
Jan 01 00:15:00.000 [warn] Skipping obsolete configuration option 'SocksListenAddress'
Jan 01 00:15:00.000 [warn] Path for DataDirectory (shadow.data/hosts/webclient1) is relative and will resolve to /root/mytor/shadow.data/hosts/webclient1. Is this what you wanted?
Jan 01 00:15:00.000 [warn] ControlPort is open, but no authentication method has been configured.  This means that any program on your computer can reconfigure your Tor.  That's bad!  You should upgrade your Tor controller as soon as possible.
Jan 01 00:15:00.000 [warn] You have used DirAuthority or AlternateDirAuthority to specify alternate directory authorities in your configuration. This is potentially dangerous: it can make you look different from all other Tor users, and hurt your anonymity. Even if you've specified the same authorities as Tor uses by default, the defaults could change in the future. Be sure you know what you're doing.
Jan 01 00:15:00.000 [warn] TestingTorNetwork is set. This will make your node almost unusable in the public Tor network, and is therefore only advised if you are building a testing Tor network!
Jan 01 00:15:00.000 [notice] Opening Socks listener on 127.0.0.1:9000
Jan 01 00:15:00.000 [notice] Opened Socks listener on 127.0.0.1:9000
Jan 01 00:15:00.000 [notice] Opening Control listener on 127.0.0.1:9051
Jan 01 00:15:00.000 [notice] Opened Control listener on 127.0.0.1:9051
Jan 01 00:15:00.000 [warn] Fixing permissions on directory shadow.data/hosts/webclient1
Jan 01 00:15:00.000 [warn] Your log may contain sensitive information - you disabled SafeLogging. Don't log unless it serves an important reason. Overwrite the log afterwards.
Jan 01 00:15:00.000 [notice] Not disabling debugger attaching for unprivileged users.
Jan 01 00:15:00.000 [notice] Parsing GEOIP IPv4 file /root/.shadow/share/geoip.
Jan 01 00:15:00.000 [warn] You are running Tor as root. You don't need to, and you probably shouldn't.
Jan 01 00:15:00.000 [notice] Bootstrapped 0%: Starting
Jan 01 00:15:00.000 [notice] Starting with guard context "default"
Jan 01 00:15:01.000 [notice] Bootstrapped 5%: Connecting to directory server
Jan 01 00:15:01.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
Jan 01 00:15:01.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection
Jan 01 00:15:01.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
Jan 01 00:15:01.000 [notice] Bootstrapped 25%: Loading networkstatus consensus
Jan 01 00:15:01.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus.
Jan 01 00:15:01.000 [notice] Bootstrapped 40%: Loading authority key certs
Jan 01 00:15:01.000 [notice] The current consensus has no exit nodes. Tor can only build internal paths, such as paths to onion services.
Jan 01 00:15:01.000 [notice] Bootstrapped 45%: Asking for relay descriptors for internal paths
Jan 01 00:15:01.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/18, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of end bw (no exits in consensus, using mid) = 0% of path bw.)
Jan 01 00:15:02.000 [notice] Bootstrapped 50%: Loading relay descriptors for internal paths
Jan 01 00:15:02.000 [notice] The current consensus contains exit nodes. Tor can build exit and internal paths.
Jan 01 00:15:02.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Jan 01 00:15:03.000 [notice] Bootstrapped 85%: Finishing handshake with first hop
Jan 01 00:15:03.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Jan 01 00:15:04.000 [notice] Bootstrapped 100%: Done

Thank you for your help.

robgjansen commented 5 years ago

You need to run a torctl process on your clients that will log the circuit information for you. For example:

<process plugin="torctl" starttime="901" arguments="localhost 9051 STREAM,CIRC,CIRC_MINOR,ORCONN,BW,STREAM_BW,CIRC_BW,CONN_BW"/>

Notice the CIRC,CIRC_MINOR events above, they will allow torctl to extract circuit information from Tor an log it to the stdout for the client.

See my https://github.com/shadow/shadow-plugin-tor/issues/69#issuecomment-476223202 for more info. (Also, I fixed a bug in the generate.py script and in the shadowtor-minimal-config example, so please pull the latest master branch to get the update.)