Skip to content

Instantly share code, notes, and snippets.

@laduke
Last active December 17, 2020 17:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laduke/73b9979f1a9ada122bf39f5c9c0b7c89 to your computer and use it in GitHub Desktop.
Save laduke/73b9979f1a9ada122bf39f5c9c0b7c89 to your computer and use it in GitHub Desktop.
zerotier-troubleshoot.sh

Collect information helpful for troubleshooting zerotier-one

Run this on Mac or Linux

It will create a text file in the current directory. It won't modify anything.

Make sure you are root

   (set -x; \
   zerotier-cli info -j; \
   zerotier-cli listnetworks -j; \
   zerotier-cli listpeers; \
   ifconfig; \
   netstat -nr; \
   iptables-save; \
   ps aux | grep zerotier-one; \
   curl -6 ifconfig.co; \
   curl -4 ifconfig.co; \
   traceroute -q1 -w1 1.1.1.1; \
   traceroute6 -q1 -w1 2606:4700:4700::1111; \
   ls -l /dev/net) &> "zt-`date "+%Y%m%d-%H:%M:%S"`.txt"

Send the file

It'll be named something like this: zt-20190329-16:00:43.tx and be in the directory you ran the above in.

FYI The file could include some private information like IP addresses and ZeroTier node and network IDs.

Some ways to send the file

If anyone can convert some of this to Powershell, let us know...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment