I am trying to get the Gateway IP of the first non-loopback adapter.
$nc(ifip)$ returns the IP correctly. I am looking for the Gateway IP.
I am trying to get the Gateway IP of the first non-loopback adapter.
$nc(ifip)$ returns the IP correctly. I am looking for the Gateway IP.
You need to either use wget() or a flow to get that. If you want to use a flow do the following:
$wg(#last, json, .ip)$
to get your external IPThen you can use the global around, hope it helps.