Documentation
¶
Overview ¶
Command bridgetool is the traffic generator and the "internet" server of the bridge lab (scripts/e2e/bridge.sh).
bridgetool serve -listen ADDR:PORT [-listen ...] the far side: a tiny line protocol, see below
bridgetool get -socks H:P -target H:P -n BYTES -seed S download BYTES of the stream S through a SOCKS5 proxy, check sha256
bridgetool put -socks H:P -target H:P -n BYTES -seed S upload them, the far side answers with the sha256 it saw
bridgetool echo -socks H:P -target H:P -secs N -every D one TCP session of N seconds, a line every D, each must come back
bridgetool hold -socks H:P -target H:P -n N -secs S -every D N such sessions at once (the entry counts N people)
bridgetool idle -socks H:P -target H:P -secs N a session that says nothing for N seconds, then one line
bridgetool par -socks H:P -target H:P -n WORKERS -bytes B -rounds R WORKERS parallel get+put of B bytes, R times each
bridgetool who -socks H:P -target H:P the address the far side saw
bridgetool impostor -listen ADDR:PORT -log FILE a TLS site with a certificate of its own that logs what it sees
bridgetool probesite -listen ADDR:PORT -cert FILE the sites the panel's own probes ask through a tunnel (generate_204,
trace, a 64 KiB download), under their real names; the certificate is written to FILE
The far side speaks one request line per connection: "GET n seed" (n bytes of the stream, then it closes), "PUT n seed" (then n bytes from the client; it answers "OK n sha256\n"), "ECHO" (echoes what it reads), "WHO" (answers the peer's address). The stream of a seed is ChaCha8 output, so both ends hash the same bytes without a file. Every client command prints one line ("ok ..." or "FAIL ...") and exits 0 or 1. Nothing here talks to any address it was not given.