More info in "zerotier-cli peers"

I’m very new too Zerotier, so please forgive basic misunderstandings :stuck_out_tongue:

# zerotier-cli peers
200 peers
<ztaddr>   <ver>  <role> <lat> <link> <lastTX> <lastRX> <path>
xxxxxxxxxx 1.8.5  LEAF       1 DIRECT 11459    11458    yyy.yyy.yyy.yyy/9993
62f865ae71 -      PLANET   225 DIRECT 1446     6234     50.7.252.138/9993
778cde7190 -      PLANET   165 DIRECT 1446     1276     103.195.103.66/9993
cafe04eba9 -      PLANET    80 DIRECT 1446     1367     84.17.53.155/9993
cafe9efeb9 -      PLANET   221 DIRECT 1446     1228     104.194.8.134/9993
zzzzzzzzzz 1.8.5  LEAF      -1 DIRECT 2356     2356     34.132.144.186/21024

This command is somewhat curious to me:

  • I see one computer/leaf in my network. I have camouflaged the ztaddr with x’s and the path with y’s, but this one is known to me
  • I see another leaf with a ztaddr consisting of the 10 first digits of my Network ID, camouflaged with z’s. This one is a conundrum to me.
  • I also see (to my understanding) four of the twelve Zerotier root servers; the planets.
  • And what’s with the 200 peers thing? I see only 6?

Now, my feature request is to add a column for the Name/Description field; names for network members, and descriptions for anything else.

The purpose would be to make it easier to recognize known leafs, in my case the x-marked leaf, and it could be used for clarification for the others.

So my desired output would be something like:

# zerotier-cli peers
6 peers
<ztaddr>   <ver>  <role> <lat> <link> <lastTX> <lastRX> <path>                <Name/Description>
xxxxxxxxxx 1.8.5  LEAF       1 DIRECT 11459    11458    yyy.yyy.yyy.yyy/9993  My Name
62f865ae71 -      PLANET   225 DIRECT 1446     6234     50.7.252.138/9993     Zerotier root server
778cde7190 -      PLANET   165 DIRECT 1446     1276     103.195.103.66/9993   Zerotier root server
cafe04eba9 -      PLANET    80 DIRECT 1446     1367     84.17.53.155/9993     Zerotier root server
cafe9efeb9 -      PLANET   221 DIRECT 1446     1228     104.194.8.134/9993    Zerotier root server
zzzzzzzzzz 1.8.5  LEAF      -1 DIRECT 2356     2356     34.132.144.186/21024  Mysterious unknown

BTW: Thanks for an amazingly great product!

Hello, I am also new to Zerotier and have noticed 34.132.144.186
Hence my search and I find your post…

Is zzzzzzzzzz by any chance the ID of your own network? For me it is!!

traceroute 34.132.144.186 resolves to…
186.144.132.34.bc.googleusercontent.com (34.132.144.186)

I doubt your network is joined to mine !! (joke)

I expect it is the myzerotier.com console where we have created our network

Hi!

You’re right, zzzzzzzzzz is the 10 first digits of my Network ID :slight_smile:

I don’t see any Google scripts on my.zerotier.com, and normally whenever they’re involved there will be their scripts, so I think it’s clean:

But you’re right - the address belongs to Google; it’s a 10-bit subnet (4 194 304 addresses) and the ARIN Whois search result lists the owner as Google LLC (GOOGL-2), and states that:

*** The IP addresses under this Org-ID are in use by Google Cloud customers ***

So I assume the address belongs to one of Googles cloud customers. Maybe Zerotier? Still, that doesn’t explain what the LEAF node is all about.

If somebody in the know reads this, it’d be cool to have an explanation :slight_smile:

my.zerotier.com and our hosted network controllers are hosted at Google Cloud

I also have this unknown LEAF in my VPN, also containing my 10 first digits of my Network ID and connecting from Google: 35.208.82.137 Des Moines, Iowa, US, AS15169 Google LLC
I got GPT to write me some cool terminal request to spot connected leafs:

sudo zerotier-cli peers | grep 'LEAF' | awk '{print $1, $8}' | cut -d'/' -f1 | while read -r line; do
    IP=$(echo $line | awk '{print $2}');
    INFO=$(curl -s ipinfo.io/$IP);
    CITY=$(echo "$INFO" | jq -r '.city');
    REGION=$(echo "$INFO" | jq -r '.region');
    COUNTRY=$(echo "$INFO" | jq -r '.country');
    ASN_NAME=$(echo "$INFO" | jq -r '.org');
    echo "$line $CITY, $REGION, $COUNTRY, $ASN_NAME";
done

That’s the network controller. Network controllers are ZeroTier nodes as well so naturally they show up in the peer list.

The peer list isn’t a list of other members of your network(s). It’s a list of other zerotier instances yours knows about and has spoken to.

1 Like

Using the web API instead of cli helped us with this: ZeroTier Central API | ZeroTier Documentation