Documentation
¶
Overview ¶
Package exitnodehealth reports unusable exit node configurations via health warnables.
Health state is refined using traffic and heartbeat signals from magicsock.
Index ¶
Constants ¶
const ( // ArgExitNodeName provides a Warnable with a human-readable identifier for // the selected exit node: its display name if it is (or recently was) a // known peer, otherwise its stable node ID or IP address. It is empty if // no particular exit node has been selected. ArgExitNodeName health.Arg = "exit-node-name" // ArgExitNodeReason provides a Warnable with the reason the selected exit // node cannot carry internet traffic: "not-in-tailnet", "no-exit-routes", // or "not-yet-selected". It lets GUIs distinguish the cases without // parsing the rendered message. ArgExitNodeReason health.Arg = "exit-node-reason" // ArgExitNodePolicyForced is "true" when the selected exit node is // mandated by the ExitNodeID or ExitNodeIP policy settings, meaning the // user cannot resolve the problem themselves and should contact their // network administrator. ArgExitNodePolicyForced health.Arg = "exit-node-policy-forced" )
Bespoke args for exit node health warnables.
const ArgLastResponseTime health.Arg = "last-response-time"
ArgLastResponseTime is the UTC RFC3339 time of the last response, or the start of monitoring if no response has been received.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExitNodeHealthVerdict ¶
type ExitNodeHealthVerdict string
ExitNodeHealthVerdict describes why the selected exit node cannot carry internet traffic. It is reported as ArgExitNodeReason.
const ( // ExitNodeOK means the exit node configuration is fine: either no exit // node is selected, or the selected one is a peer offering exit routes. ExitNodeOK ExitNodeHealthVerdict = "" // ExitNodeNotInTailnet means the selected exit node is not among the // current peers, so it has presumably left the tailnet. ExitNodeNotInTailnet ExitNodeHealthVerdict = "not-in-tailnet" // ExitNodeNoExitRoutes means the selected exit node is a current peer but // doesn't contribute the default routes, so it either stopped advertising // them or its routes are not approved. ExitNodeNoExitRoutes ExitNodeHealthVerdict = "no-exit-routes" // ExitNodeNotYetSelected means an exit node is required but none has been // chosen yet, so blackhole routes remain in place. ExitNodeNotYetSelected ExitNodeHealthVerdict = "not-yet-selected" )