Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add parser for ZeroTier #106

Closed
Tracked by #135
Aryamanz29 opened this issue May 22, 2023 · 0 comments
Closed
Tracked by #135

[feature] Add parser for ZeroTier #106

Aryamanz29 opened this issue May 22, 2023 · 0 comments

Comments

@Aryamanz29
Copy link
Member

Add a ZeroTierParser that can parse the information of ZeroTier peers and generate a network graph.

  • Utilize zerotier-cli peers -j command to obtain the ZeroTier peers information as shown below:
[
{
 "address": "62f865ae71",
 "isBonded": false,
 "latency": 382,
 "paths": [
  {
   "active": true,
   "address": "50.7.252.138/9993",
   "expired": false,
   "lastReceive": 1645034513389,
   "lastSend": 1645034513008,
   "preferred": true,
   "trustedPathId": 0
  }
 ],
 "role": "PLANET",
 "version": "-1.-1.-1",
 "versionMajor": -1,
 "versionMinor": -1,
 "versionRev": -1
},
{
 "address": "778cde7190",
 "isBonded": false,
 "latency": 344,
 "paths": [
  {
   "active": true,
   "address": "103.195.103.66/9993",
   "expired": false,
   "lastReceive": 1645034513362,
   "lastSend": 1645034513008,
   "preferred": true,
   "trustedPathId": 0
  }
 ],
 "role": "PLANET",
 "version": "-1.-1.-1",
 "versionMajor": -1,
 "versionMinor": -1,
 "versionRev": -1
},
{
 "address": "cafe04eba9",
 "isBonded": false,
 "latency": 253,
 "paths": [
  {
   "active": true,
   "address": "84.17.53.155/9993",
   "expired": false,
   "lastReceive": 1645034508255,
   "lastSend": 1645034513008,
   "preferred": true,
   "trustedPathId": 0
  }
 ],
 "role": "PLANET",
 "version": "-1.-1.-1",
 "versionMajor": -1,
 "versionMinor": -1,
 "versionRev": -1
},
{
 "address": "cafe9efeb9",
 "isBonded": false,
 "latency": 247,
 "paths": [
  {
   "active": true,
   "address": "104.194.8.134/9993",
   "expired": false,
   "lastReceive": 1645034513259,
   "lastSend": 1645034513008,
   "preferred": true,
   "trustedPathId": 0
  }
 ],
 "role": "PLANET",
 "version": "-1.-1.-1",
 "versionMajor": -1,
 "versionMinor": -1,
 "versionRev": -1
}
]
  • Extract the role and latency fields to set the cost of links.
@nemesifier nemesifier added this to To do 🚀 in [GSoC 23] ZeroTier 🔅 via automation May 23, 2023
@Aryamanz29 Aryamanz29 moved this from To do 🚀 to In progress 🔄 in [GSoC 23] ZeroTier 🔅 Aug 7, 2023
Aryamanz29 added a commit to Aryamanz29/netdiff that referenced this issue Aug 8, 2023
Aryamanz29 added a commit to Aryamanz29/netdiff that referenced this issue Aug 8, 2023
Aryamanz29 added a commit to Aryamanz29/netdiff that referenced this issue Aug 8, 2023
Aryamanz29 added a commit to Aryamanz29/netdiff that referenced this issue Aug 9, 2023
Aryamanz29 added a commit that referenced this issue Aug 10, 2023
nemesifier pushed a commit that referenced this issue Sep 22, 2023
[GSoC 23] ZeroTier 🔅 automation moved this from In progress 🔄 to Done 🔥 Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants