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

[client] Add network map to debug bundle #2966

Merged
merged 9 commits into from
Dec 3, 2024
Merged

Conversation

lixmal
Copy link
Contributor

@lixmal lixmal commented Nov 29, 2024

Describe your changes

Adds the latest network map to the debug bundle when run with for.

Example content:

{
  "Serial": "1904",
  "peerConfig": {
    "address": "100.64.39.184/16",
    "dns": "",
    "sshConfig": {
      "sshEnabled": false,
      "sshPubKey": ""
    },
    "fqdn": "peer1.netbird.cloud"
  },
  "remotePeers": [
    {
      "wgPubKey": "ZUqeHZPbTH49cXnEBTrfg9UyRwfNs3UURPGF0hSEAF0=",
      "allowedIps": [
        "100.64.209.41/32"
      ],
      "sshConfig": {
        "sshEnabled": false,
        "sshPubKey": "c3NoLXBsYWNlaG9sZGVyLWtleQ=="
      },
      "fqdn": "peer2.netbird.cloud"
    }
  ],
  "remotePeersIsEmpty": false,
  "Routes": [
    {
      "ID": "cqr098gl3is7tcqh08kg:crg8q2gl3isej86it5j0",
      "Network": "10.10.1.0/24",
      "NetworkType": "1",
      "Peer": "/g8xs9b7ocI6MsJK3ZZFLGZvzQ9VUJr4C5WGOcm742s=",
      "Metric": "9999",
      "Masquerade": true,
      "NetID": "site1",
      "Domains": [],
      "keepRoute": false
    }
  ],
  "DNSConfig": {
    "ServiceEnable": true,
    "NameServerGroups": [
      {
        "NameServers": [
          {
            "IP": "8.8.8.8",
            "NSType": "1",
            "Port": "53"
          },
          {
            "IP": "8.8.4.4",
            "NSType": "1",
            "Port": "53"
          }
        ],
        "Primary": true,
        "Domains": [],
        "SearchDomainsEnabled": false
      }
    ],
    "CustomZones": [
      {
        "Domain": "netbird.cloud.",
        "Records": [
          {
            "Name": "peer1.netbird.cloud",
            "Type": "1",
            "Class": "IN",
            "TTL": "300",
            "RData": "100.64.39.184"
          },
          {
            "Name": "peer2.netbird.cloud",
            "Type": "1",
            "Class": "IN",
            "TTL": "300",
            "RData": "100.64.209.41"
          }
        ]
      }
    ]
  },
  "offlinePeers": [],
  "FirewallRules": [
    {
      "PeerIP": "100.64.209.41",
      "Direction": "IN",
      "Action": "ACCEPT",
      "Protocol": "TCP",
      "Port": "8080"
    }
  ],
  "firewallRulesIsEmpty": false,
  "routesFirewallRules": [
    {
      "sourceRanges": [
        "0.0.0.0/0"
      ],
      "action": "ACCEPT",
      "destination": "10.10.1.0/24",
      "protocol": "ALL",
      "portInfo": {},
      "isDynamic": false
    }
  ],
  "routesFirewallRulesIsEmpty": false
}

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@lixmal lixmal force-pushed the debug-bundle-with-networkmap branch from aa51644 to b931c0c Compare December 2, 2024 11:59
pappz
pappz previously approved these changes Dec 3, 2024
Copy link

sonarqubecloud bot commented Dec 3, 2024

@lixmal lixmal merged commit 17c20b4 into main Dec 3, 2024
26 checks passed
@lixmal lixmal deleted the debug-bundle-with-networkmap branch December 3, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants