Skip to content

Instantly share code, notes, and snippets.

@caffeineshock
Created August 14, 2012 19:45
Show Gist options
  • Save caffeineshock/3352163 to your computer and use it in GitHub Desktop.
Save caffeineshock/3352163 to your computer and use it in GitHub Desktop.
XML to run browser with scallion
<plugin id="scallion" path="libshadow-plugin-scallion.so" />
<plugin id="filex" path="libshadow-plugin-filetransfer.so" />
<plugin id="browser" path="libshadow-plugin-browser.so" />
<cluster id="browser" bandwidthdown="6000" bandwidthup="1000" />
<cluster id="server" bandwidthdown="100000" bandwidthup="100000" />
<link id="link-browser-browser" clusters="browser browser" latency="30" jitter="11" packetloss="0.0">
<link id="link-server-browser" clusters="server browser" latency="50" jitter="11" packetloss="0.0" />
<link id="link-browser-server" clusters="browser server" latency="50" jitter="11" packetloss="0.0" />
<software id="authority" plugin="scallion" time="1" arguments="dirauth 102400 1024000 1024000 ./authority.torrc ./data/authoritydata ~/.shadow/share/geoip" />
<node id="4uthority" software="authority" cluster="browser" bandwidthup="102400" bandwidthdown="102400" cpufrequency="2800000" quantity="1" />
<software id="exit" plugin="scallion" time="300" arguments="exitrelay 1024 102400 102400 ./exit.torrc ./data/exitdata ~/.shadow/share/geoip" />
<node id="exit.tor" cluster="browser" software="exit" cpufrequency="2800000" quantity="1" />
<software id="relay" plugin="scallion" time="300" arguments="relay 1024 102400 102400 ./relay.torrc ./data/relaydata ~/.shadow/share/geoip" />
<node id="relay.tor" cluster="browser" software="relay" cpufrequency="2800000" quantity="2" />
<!-- Servers -->
<software id="server" plugin="filex" time="1" arguments="server 80 <path-to-shadow>/resource/browser-example/" />
<node id="server" software="server" cluster="server" bandwidthdown="60000" bandwidthup="30000" cpufrequency="2800000" />
<!-- Browser -->
<software id="client" plugin="scallion" time="6000" arguments="browser 1024 102400 102400 ./client.torrc ./data/clientdata ~/.shadow/share/geoip server 80 localhost 9000 6 /index.htm" />
<node id="client.tor" cluster="browser" software="client" cpufrequency="2800000" logpcap="true" quantity="1" />
<kill time="10000" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment