aparcar / meshrc

19 stars 3 forks source link

support gateway detection #2

Closed aparcar closed 5 years ago

aparcar commented 6 years ago

prometheus-node-exporter-lua-bmx7 should detect if a node works as a gateway.

@axn is there a way to check if a node announces 0.0.0.0/0?

axn commented 6 years ago

On 02.04.2018 08:12, Paul Spooren wrote:

prometheus-node-exporter-lua-bmx7 should detect if a node works as a gateway.

@axn https://github.com/axn is there a way to check if a node announces 0.0.0.0/0?

Which nodes announce something with /0 can be seen with bmx7 -c tunnels via the advNet column.

Or via json by parsing /var/run/bmx7/descriptions/*

Look for something like: "DSC_TUN4IN6_NET": [ { "tun6Id": 0, "rtype": 0, "bandwidth": "257G", "networkLen": 0, "network": "0.0.0.0" } ] }, { "DSC_TUN6IN6_NET": [ { "tun6Id": 0, "rtype": 0, "bandwidth": "257G", "networkLen": 0, "network": "::" } ] },

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aparcar/mesh-rc/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQQnpzsdBIZnn4hbB19-z2ziPar9fchks5tkcFXgaJpZM4TDMPb.

aparcar commented 5 years ago

fixed via https://github.com/aparcar/meshrc/commit/ca149ffaa65a00b7cef3871cde548b8bfcb5beb0