A server which i want to turn into a Tor node (meaning relay, bridge.. https://community.torproject.org/relay/setup/ ), i want to install one of these:
OBFS4 bridge
Snowflake
Middle/guard relay
which one should i choose first and how exactly to figure out that it is time to switch to another type, and which one it should be + why?
My idea is that into account should be taken how easy it is to block certain type of Tor software and if or how hard it is to use such type of tor node if it is discovered/blocked by censor. Question is also how to find such blocking if i do not live in a censor country nor knowing anyone who lives there.
Private AI https://lumo.proton.me/ told me that I should start with middle/guard relay because of its usefulness and then i can run second Tor instance on a diff. port and DataDirectory or a bridge or a pluggable transport. This AI suggestion can be easily wrong.
Regarding way to evaluate if the node type is blocked, it suggested to check consensus weight at https://metrics.torproject.org/rs.html#search while low weight means the network isn’t using the node much, though IMO this does not look like a reliable enough indicator. At Tor Metrics I should also check “reachability” figure.
#!/bin/bash
weight=$(curl -s https://onionoo.torproject.org/details?search=MyRelay | jq -r '.relays[0].consensus_weight')
if (( weight < 10000 )); then
echo "Relay weight low: $weight" | mail -s "Tor relay alert" you@example.com
fi
AI:
Start → Middle/Guard relay
│
├─ Weight stable & bandwidth OK → Keep as is
└─ Weight drops / many probes fail
│
├─ Try moving ORPort to a common port (443, 80) → If improves, stay as relay
└─ Still blocked
│
├─ Deploy obfs4 bridge (new port) → Register with BridgeDB
└─ If bridge also blocked → Deploy Snowflake (WebRTC) on separate VM
Other theory is opposite, start with node that is least discoverable by censors (possibly Snowflake, OBFS4) and when blocked (one may see it when the censor countries disappear from "cat /var/lib/tor/stats/bridge-stats" command output - indicating significant decrease of a conenctions from censored countries), then setup middle relay?
I think it would be an one or the other kind of situation. I guess you could run a bridge before running a relay. About how to check if your bridge gets blocked I honestly don't know that would be something I would ask in the tor relay operators mailing list.