mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-10-08 23:22:21 +02:00
* feat(patch): introduce net localgroup, net user, and route print parsers * fix: fix net user parsing error * fix: address PR findings --------- Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
242 lines
6.0 KiB
JSON
242 lines
6.0 KiB
JSON
{
|
|
"interface_list": [
|
|
{
|
|
"interface_index": 28,
|
|
"mac_address": null,
|
|
"description": "Tailscale Tunnel"
|
|
},
|
|
{
|
|
"interface_index": 12,
|
|
"mac_address": "00:1c:42:da:01:6a",
|
|
"description": "Parallels VirtIO Ethernet Adapter"
|
|
},
|
|
{
|
|
"interface_index": 1,
|
|
"mac_address": null,
|
|
"description": "Software Loopback Interface 1"
|
|
}
|
|
],
|
|
"ipv4_route_table": {
|
|
"active_routes": [
|
|
{
|
|
"network_destination": "0.0.0.0",
|
|
"netmask": "0.0.0.0",
|
|
"gateway": "10.211.55.1",
|
|
"interface": "10.211.55.3",
|
|
"metric": "15"
|
|
},
|
|
{
|
|
"network_destination": "10.0.0.0",
|
|
"netmask": "255.0.0.0",
|
|
"gateway": "192.168.22.1",
|
|
"interface": "10.211.55.3",
|
|
"metric": "16"
|
|
},
|
|
{
|
|
"network_destination": "10.0.1.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "192.168.22.1",
|
|
"interface": "10.211.55.3",
|
|
"metric": "16"
|
|
},
|
|
{
|
|
"network_destination": "10.0.3.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "192.168.22.1",
|
|
"interface": "10.211.55.3",
|
|
"metric": "16"
|
|
},
|
|
{
|
|
"network_destination": "10.0.4.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "192.168.22.1",
|
|
"interface": "10.211.55.3",
|
|
"metric": "16"
|
|
},
|
|
{
|
|
"network_destination": "10.211.55.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "On-link",
|
|
"interface": "10.211.55.3",
|
|
"metric": "271"
|
|
},
|
|
{
|
|
"network_destination": "10.211.55.3",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "10.211.55.3",
|
|
"metric": "271"
|
|
},
|
|
{
|
|
"network_destination": "10.211.55.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "10.211.55.3",
|
|
"metric": "271"
|
|
},
|
|
{
|
|
"network_destination": "127.0.0.0",
|
|
"netmask": "255.0.0.0",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "331"
|
|
},
|
|
{
|
|
"network_destination": "127.0.0.1",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "331"
|
|
},
|
|
{
|
|
"network_destination": "127.255.255.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "331"
|
|
},
|
|
{
|
|
"network_destination": "169.254.0.0",
|
|
"netmask": "255.255.0.0",
|
|
"gateway": "On-link",
|
|
"interface": "169.254.83.107",
|
|
"metric": "261"
|
|
},
|
|
{
|
|
"network_destination": "169.254.83.107",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "169.254.83.107",
|
|
"metric": "261"
|
|
},
|
|
{
|
|
"network_destination": "169.254.255.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "169.254.83.107",
|
|
"metric": "261"
|
|
},
|
|
{
|
|
"network_destination": "224.0.0.0",
|
|
"netmask": "240.0.0.0",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "331"
|
|
},
|
|
{
|
|
"network_destination": "224.0.0.0",
|
|
"netmask": "240.0.0.0",
|
|
"gateway": "On-link",
|
|
"interface": "10.211.55.3",
|
|
"metric": "271"
|
|
},
|
|
{
|
|
"network_destination": "255.255.255.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "331"
|
|
},
|
|
{
|
|
"network_destination": "255.255.255.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "10.211.55.3",
|
|
"metric": "271"
|
|
}
|
|
],
|
|
"persistent_routes": [
|
|
{
|
|
"network_address": "10.0.1.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway_address": "192.168.22.1",
|
|
"metric": "1"
|
|
},
|
|
{
|
|
"network_address": "10.0.3.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway_address": "192.168.22.1",
|
|
"metric": "1"
|
|
},
|
|
{
|
|
"network_address": "10.0.4.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway_address": "192.168.22.1",
|
|
"metric": "1"
|
|
},
|
|
{
|
|
"network_address": "10.0.0.0",
|
|
"netmask": "255.0.0.0",
|
|
"gateway_address": "192.168.22.1",
|
|
"metric": "1"
|
|
}
|
|
]
|
|
},
|
|
"ipv6_route_table": {
|
|
"active_routes": [
|
|
{
|
|
"interface": 1,
|
|
"metric": "331",
|
|
"network_destination": "::1/128",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 12,
|
|
"metric": "271",
|
|
"network_destination": "2001:db8::/64",
|
|
"gateway": "fe80::1"
|
|
},
|
|
{
|
|
"interface": 12,
|
|
"metric": "271",
|
|
"network_destination": "fdb2:2c26:f4e4::/64",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 12,
|
|
"metric": "271",
|
|
"network_destination": "fdb2:2c26:f4e4:0:670f:fec7:75b7:eb83/128",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 12,
|
|
"metric": "271",
|
|
"network_destination": "fdb2:2c26:f4e4:0:b4d5:8083:6ce6:37d/128",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 12,
|
|
"metric": "271",
|
|
"network_destination": "fe80::/64",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 12,
|
|
"metric": "271",
|
|
"network_destination": "fe80::4abd:fa70:3d36:83fd/128",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 1,
|
|
"metric": "331",
|
|
"network_destination": "ff00::/8",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 12,
|
|
"metric": "271",
|
|
"network_destination": "ff00::/8",
|
|
"gateway": "On-link"
|
|
}
|
|
],
|
|
"persistent_routes": [
|
|
{
|
|
"interface": 0,
|
|
"metric": "4294967295",
|
|
"network_destination": "2001:db8::/64",
|
|
"gateway": "fe80::1"
|
|
}
|
|
]
|
|
}
|
|
}
|