Skip to main content

tuna mesh

Mesh network operations.

Guide with examples: Mesh.

Subcommands​

CommandDescription
tuna mesh countriesList country presets for split tunneling.
tuna mesh debugDiagnostic helpers for mesh (policy simulation, etc.).
tuna mesh downDisconnect from mesh network.
tuna mesh ipShow this device's mesh IP addresses (IPv4 and IPv6).
tuna mesh loginLog this device into a mesh team.
tuna mesh logoutRemove mesh enrollment and revoke this device.
tuna mesh nodesList mesh nodes of your team with measured RTT.
tuna mesh peersList devices in the team mesh (online and offline).
tuna mesh statusShow mesh network status.
tuna mesh traceShow path to a mesh peer + end-to-end RTT.
tuna mesh upConnect to team mesh network.

tuna mesh countries​

List country presets for split tunneling.

List ISO-2 country codes available for --exit-node-country-include/--exit-node-country-exclude with the number of routes each preset contains.

Usage
tuna mesh countries [flags]
FlagDescription
--jsonOutput in JSON format.

tuna mesh debug​

Diagnostic helpers for mesh (policy simulation, etc.).

CommandDescription
tuna mesh debug traceSimulate whether ACL/policy allows a packet from <src> to <dst>.

tuna mesh debug trace​

Simulate whether ACL/policy allows a packet from <src> to <dst>.

ACL policy simulation. Resolves src/dst (IP or hostname) and asks Control Plane to evaluate team rules without sending real traffic. Use 'self' as src to test from this device.

Usage
tuna mesh debug trace <src> <dst> [flags]
FlagDescription
--dport intDestination port (0 = any; ignored for icmp/any).
--jsonOutput in JSON format.
-p, --proto stringProtocol: tcp, udp, icmp or any. Default: tcp.

tuna mesh down​

Disconnect from mesh network.

Alias: stop.

Usage
tuna mesh down

tuna mesh ip​

Show this device's mesh IP addresses (IPv4 and IPv6).

Usage
tuna mesh ip [flags]
FlagDescription
-4, --ipv4Show only the IPv4 mesh address.
-6, --ipv6Show only the IPv6 mesh address.

tuna mesh login​

Log this device into a mesh team.

Adds this device to your mesh team. In a terminal it asks how to log in: through the browser on this machine, by a link and code confirmed from another device, or with an enroll token issued in the dashboard. Servers and automation pass the token with --enroll-token or TUNA_MESH_ENROLL_TOKEN.

Usage
tuna mesh login [flags]
Examples
tuna mesh login
tuna mesh login --no-browser
TUNA_MESH_ENROLL_TOKEN=<token> tuna mesh login
FlagDescription
--enroll-token stringEnroll token from the dashboard, for servers and automation (or TUNA_MESH_ENROLL_TOKEN).
--no-browserPrint a link and code to confirm the login from another device, for machines without a browser.
--webLog in through the browser on this machine without asking for the method.

tuna mesh logout​

Remove mesh enrollment and revoke this device.

Remove mesh enrollment from this device and revoke it on the control plane, freeing the hardware so it can be re-enrolled (including under a different account). Next tuna mesh login creates a fresh device entry.

Usage
tuna mesh logout

tuna mesh nodes​

List mesh nodes of your team with measured RTT.

List active mesh nodes available to your team. Tunad re-measures RTT (TCP probe) on every call.

Default columns: hostname, region, RTT, status. The current node is marked with *. Use --verbose to also show connect endpoint and meshd version.

Usage
tuna mesh nodes [flags]
FlagDescription
--jsonOutput in JSON format.
-V, --verboseShow extra columns (connect endpoint, meshd version).

tuna mesh peers​

List devices in the team mesh (online and offline).

Usage
tuna mesh peers [flags]
FlagDescription
--jsonOutput in JSON format.

tuna mesh status​

Show mesh network status.

Usage
tuna mesh status [flags]
FlagDescription
--jsonOutput in JSON format.

tuna mesh trace​

Show path to a mesh peer + end-to-end RTT.

Trace overlay path to a team peer. Resolves hostname through the local peer list.

Shows you, your home mesh node and the target peer; transit nodes inside the overlay are not exposed yet. End-to-end RTT is measured with ICMP echo over the mesh interface.

Usage
tuna mesh trace <ip|hostname> [flags]
FlagDescription
--jsonOutput in JSON format.
-n, --probes intNumber of ICMP probes for end-to-end RTT. Default: 5.

tuna mesh up​

Connect to team mesh network.

Connect to the mesh network of your team. Team members can see each other.

Alias: start.

Usage
tuna mesh up [flags]
FlagDescription
--advertise-exit-nodeOffer this device as an exit node (Linux/macOS).
--advertise-routes stringOffer subnet routes through this device (CIDR list, e.g. 192.168.1.0/24,10.0.0.0/8). Can be repeated.
--data-plane stringTransport client<->meshd: auto (WG with SSH fallback), wg (strict WireGuard, no fallback), ssh (SSH frame-relay only). Default: auto.
--exit-node stringRoute traffic through a mesh peer's advertised set: full internet if it offers 0.0.0.0/0, otherwise its advertised subnets (peer hostname, e.g. tunad-2 or tunad-2.tuna; mesh IP 100.x.y.z also accepted).
--exit-node-country-exclude stringCountry code (ISO-2) whose traffic bypasses the exit peer (e.g. ru, single country only, see 'tuna mesh countries'). Mutually exclusive with --exit-node-country-include; requires --exit-node. Can be repeated.
--exit-node-country-include stringCountry code (ISO-2) whose traffic is routed through the exit peer, other destinations stay on the physical interface (single country only). Requires --exit-node. Can be repeated.
--exit-node-routes-exclude stringAdditional CIDRs that bypass the exit peer; with --exit-node-country-include acts as a carve-out from the included set. Can be repeated.
--exit-node-routes-include stringAdditional CIDRs routed through the exit peer; with --exit-node-country-exclude forces listed CIDRs through the exit. Can be repeated.
--fallback-to-directFail open, off by default: when --exit-node is unreachable longer than grace, remove exit routes so traffic flows direct. Auto-restored on recovery. Requires --exit-node.
--fallback-to-direct-grace stringWait before removing exit routes after exit-node goes down (e.g. 60s). Range [10s, 10m]. Default 60s.
--node stringForce selecting a specific mesh node by hostname (see 'tuna mesh nodes').

Global flags work too.