exitnodehealth

package
v1.106.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: BSD-3-Clause Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

View Source
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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL