Networking / User guide
Private networking and overlays
Connect infrastructure through private networking and inspect topology, policies, and network integration state.
On this page
Connect infrastructure through private networking and inspect topology, policies, and network integration state.
Before you begin
Have permission to configure organization networking. Decide whether to use the networking supplied by your deployment or a supported organization-owned provider.
Get started
- Open the network integration settings and select the offered provider configuration.
- Complete provider authentication and any required node authorization.
- Connect instances and inspect their network identity and connectivity.
- Verify traffic between the actual workload endpoints before provisioning dependent services.
Operate the service
Use topology and network status to investigate connectivity. Review ACL changes against the required source, destination, and ports. Provider switches are lifecycle operations: inspect progress and cancellation status instead of assuming an immediate cutover. Once a switch completes, Anchras enrolls each instance that had a device on the previous provider on the new one. It retries offline hosts for about two hours. anchras networks settings and the network provider page list any instance still retrying or not enrolled, with the reason.
Availability and limits
Tailnet connection, devices, DNS settings, access control, endpoint explain and relay advice are generally available. Three parts of the Network page are experimental and outside that promise:
- Subnet gateways (
anchras networks gateways): automatic live-provider failover timing and live peer-relay policy enforcement are not yet qualified. - Router and switch integrations, MikroTik routes and access ports, UniFi isolated networks (
anchras networks integrations,routes,access-vlans,unifi-vlans): physical switch write qualification, UniFi provider compare-and-swap and device-local rollback are pending. Certificate pins verify peer identity without PKI lifetime or trust validation, and SwOS is unsupported. - Organization, public, private and dual-view domains (
anchras networks domains): public ACME issuance has no live delegated-domain qualification yet.
The dashboard and CLI mark each of these sections.
Project networks (anchras networks attach) and SSH session recording are in preview.
Private connectivity does not automatically publish applications to the internet. Public Funnel/exposure is an explicit capability with provider requirements. Changes to network policy can affect cluster access, storage mounts, and administration.
Troubleshooting
If an instance is online but workloads cannot communicate, verify node authorization, ACLs, DNS, destination ports, and the service listener. A heartbeat proves control-plane connectivity, not every data-plane path.
Next steps
Use the CLI guide to automate repeatable work, or the API guide to integrate Anchras with your own tools.
Log people's devices in
On Anchras Network, a device can join without an auth key: run tailscale up (or tailscale login --qr for a QR code) against your coordination URL and the device prints a login link. Open it, sign in with your organization's login or SSO, and choose Join as you: the device joins the organization's tailnet as you, with the tailnet role your permissions give you (autogroup:admin, autogroup:network-admin and the other role autogroups in the tailnet policy). anchras tailnets login <link> does the same from a terminal. Only join devices you started the login on.
Admins manage the tailnet's users on the network integration page or with anchras tailnets users:
- User approval (
anchras tailnets user-approval on): a new user's devices wait until an admin approves the user. - Suspend takes a user's devices off the tailnet at once: their keys expire and every peer drops them. Restore lifts the suspension, but each device must be logged in again.
- Remove deletes the user with every device they own. Removing a member from the organization does this too, and disabling their Anchras account suspends them.
A login link expires after 15 minutes; the device shows a new one.
Tailscale SSH
On Anchras Network, a node can run Tailscale SSH (tailscale set --ssh): people reach it with their own SSH client over the tailnet, with no keys to manage, and the tailnet policy's ssh rules decide who may log in as which local user. The rules use Tailscale's grammar:
"ssh": [
{"action": "accept", "src": ["autogroup:member"], "dst": ["autogroup:self"], "users": ["autogroup:nonroot"]},
{"action": "check", "src": ["group:ops"], "dst": ["tag:server"], "users": ["root", "ubuntu"], "checkPeriod": "1h"},
{"action": "accept", "src": ["autogroup:member"], "dst": ["tag:dev"], "users": ["localpart:*@example.com"]}
]dstis a tag,autogroup:tagged,autogroup:self(the person's own devices) or the person's own login.usersare local user names,autogroup:nonroot(any user but root) andlocalpart:*@<domain>(the local part of the person's email).- An
sshrule grants no network access: an acl or grant must also let the source reach port 22 on the node. - A
checkrule holds the connection, and the SSH client prints a link to /network/ssh-check/…. Open it, sign in with your organization's login or SSO, and choose Approve (or runanchras tailnets ssh-check <link>). Only the person connecting can approve it. The approval lets that person in from that device forcheckPeriod(default 12 hours;"always"asks every time). A link works once and expires after 10 minutes. acceptEnvlists the environment variables a client may send.recorderandenforceRecorderrecord sessions (see below).
Record SSH sessions
Anchras can record the sessions an ssh rule lets in. Add a recorder under Network → Access control → Session recording (or anchras tailnets ssh-recordings recorders create <name>): Anchras runs it as a device tagged tag:anchras-recorder, which every device of the tailnet can reach on port 80. Then name it in the rule:
{"action": "accept", "src": ["group:ops"], "dst": ["tag:server"], "users": ["root"],
"recorder": ["tag:anchras-recorder"], "enforceRecorder": true}- The device the session runs on streams its output to a recorder. Input is not recorded, as on Tailscale.
- With
enforceRecordera session that no recorder accepts is refused, and one whose recorder goes away is ended. Without it the session runs unrecorded. - Add a second recorder to keep recording while one restarts: the device tries each in turn.
recordercan also name a tag on your own recorder, such as Tailscale's tsrecorder. Your policy must then let the devices reach it.
Recordings are listed under SSH recordings (Infrastructure → Policy & access), where you can filter them by user, device and time, play them in the browser, download them as asciinema casts or delete them (anchras tailnets ssh-recordings list|play|download|delete). They are stored encrypted, and only your organization can read them. They are deleted after the retention period, 90 days unless you change it. Playing, downloading and deleting a recording are audited, as are retention and recorder changes. Only admins and owners can see recordings.
When a recording fails, the SSH server reports it to Anchras: no recorder took the session and it ran unrecorded or, with enforceRecorder, was refused; or the recorder went away mid-session and the session went on or, with enforceRecorder, was ended. These reports are listed under Recording failures on the same page (anchras tailnets ssh-recordings failures), with the device and person connecting, the server, the rule and the recorder's error. Each one is audited and sent to the tailnet webhooks that subscribe to tailnet.ssh_recording.failed, tailnet.ssh_recording.rejected or tailnet.ssh_recording.terminated.
Recording needs a recording store on the deployment. On a self-hosted control plane, set ANCHRAS_SSH_RECORDING_S3_BUCKET (an S3 bucket without versioning) or, for a single server, ANCHRAS_SSH_RECORDING_DIR.
The devices table shows which devices run Tailscale SSH. The browser terminal on instance and cluster node pages is separate: the Anchras agent opens it for console users your permissions allow, on any network provider, and the ssh rules do not apply to it.
Sign in to your apps with the tailnet
Anchras can run an OpenID Connect identity provider in your tailnet, as Tailscale's tsidp does, so apps on the tailnet (Grafana, Proxmox, Gitea, an MCP server) sign people in as the person the tailnet says they are, with no password. Turn it on under Network → Access control → Identity provider (or anchras tailnets idp enable). Your tailnet needs MagicDNS and HTTPS certificates.
- Anchras runs it as a device named
anchras-idp, taggedtag:anchras-idp, which every device of the tailnet can reach on port 443. Its issuer ishttps://anchras-idp.<your tailnet's domain>; no other device can take that name. - Add each app under Add app (or
anchras tailnets idp clients create <name> --redirect-uri <uri>) and configure it with the issuer, the client ID and the secret, which is shown once. A public app, such as a command-line tool, has no secret and must use PKCE. Redirect URIs arehttps; plainhttpworks only to a name in your tailnet, a tailnet address orlocalhost, where the tailnet carries the sign-in. - Tagged devices cannot sign in: the identity provider vouches for people.
- A grant whose
dstistag:anchras-idpcan add claims to a person's tokens:{"src": ["group:ops"], "dst": ["tag:anchras-idp"], "app": {"tailscale.com/cap/tsidp": [{"extraClaims": {"groups": ["admins"]}, "includeInUserInfo": true}]}}. - MCP clients register themselves when you turn on dynamic client registration and a grant gives their device
"allow_dcr": true:{"src": ["autogroup:member"], "dst": ["tag:anchras-idp"], "app": {"tailscale.com/cap/tsidp": [{"allow_dcr": true}]}}. The identity provider's metadata (/.well-known/oauth-authorization-server) lists the registration endpoint while it is on. A registered client must redirect inside the tailnet. Each person allows it once before it can sign them in, and again for each MCP server it asks a token for. - An MCP server on the tailnet points its protected resource metadata (RFC 9728) at the issuer. The MCP client then asks for a token for that server (the
resourceparameter, RFC 8707), and gets a JWT access token (typ: at+jwt) whoseaudis the server's URL, valid for an hour. The server checks it against the issuer's keys at/.well-known/jwks.json, and must checkaudis its own URL. Tokens are issued only for servers on the tailnet: a name in your tailnet, a tailnet address orlocalhost. - A registered client nobody signs in through for 30 days is removed. The app list shows when.
Turning it on or off, every app change, every registration, every expiry and every sign-in is audited. Only admins and owners can manage it.
Relay advice
Open Network → Routing → Relay advice, or run anchras networks advice (recommend is an alias). -o json returns the same TailnetService.GetRelayAdvice objects as the dashboard. The read is scoped to the authenticated organization across all of its tailnets; it neither changes provider configuration nor installs a relay.
The advisor counts each retained directed source-device → peer-device observation once. Both its measurement and typed transport timestamp must be within five minutes. A home DERP region, an empty direct address, or an ACL allowance is not an observed relay path. Unknown, unsupported and stale coverage is shown explicitly and excluded from the majority denominator. A majority of the classified current pairs can be a small sample of the organization; coverage counts make this limitation visible. Recommendations are recomputed on every read, with at most 50 stable evidence samples and complete affected-pair counts. This is observed-pair coverage, not all possible connections, packet volume, uptime, or a whole-network health verdict. Unavailable database evidence is an error, not a healthy result.
Improve direct paths and qualify a peer relay
- From affected devices in the evidence list, run
tailscale netcheckandtailscale ping <peer>and exercise the actual application. Check UDP/firewall and NAT constraints first. - Compare candidate relay latency from both sides, uplink capacity and stability. A device being online or nearby does not establish those properties; the advisor does not nominate an unmeasured site.
- Verify Tailscale 1.86 or later on relay and clients, a reachable configured UDP relay port, provider support, and a narrowly scoped
tailscale.com/cap/relaygrant. Ordinary application access still needs its own ACL/grant. Follow Tailscale's peer-relay instructions, or use Anchras's existing managed gateway peer-relay controls for a qualified gateway. Do not broaden a grant to unrelated clients merely to satisfy the advice. - Generate new application traffic after configuration changes, then refresh the panel or CLI. A fresh peer-relay majority lowers advice to informational monitoring; fresh direct-path improvement removes the majority-relay recommendation. A configuration toggle alone proves no improvement. If telemetry expires, the assessment becomes insufficient evidence instead of a success claim.
- Check actual application latency and relay-loss recovery. Keep DERP fallback available. Typed peer-relay use does not prove uninterrupted failover or sufficient capacity.
A managed gateway peer relay (anchras networks gateways relays, or Network → Routing → Managed peer relays) assigns its own device tags. On apply, Anchras adds the relay tag to the gateway's device and the client tag to each selected client device. It keeps their other tags and records which tags it added. Removing the relay strips only those tags.
Only devices carrying the client tag can set up paths through the relay, but those paths serve any device a client talks to, including devices without the client tag. This matches Tailscale peer relays.
Anchras refuses when another device already carries the relay tag, or a device outside the selected clients carries the client tag. It also refuses for a user-owned (untagged) client. Both tags must be in the tailnet policy's tagOwners, owned by a tag the Anchras OAuth client holds, and the OAuth client needs devices:core write access.
Custom DERP is an advanced operator decision
For DERP observations with measured RTT at least 100 ms, the advisor includes an additional investigation step. This is a diagnostic threshold, not a performance SLO. Prefer fixing direct connectivity or qualifying peer relays first. Only consider custom DERP after independently verifying a well-connected site, capacity, reachability, selected-provider support, certificate operations, monitoring and maintenance. The advisor cannot establish those prerequisites from peer path telemetry and never declares a site qualified.
Follow the selected provider's documentation and Tailscale's DERP guidance. Custom DERP has operational overhead and must not be shared across tailnets contrary to provider constraints. Tailscale and Headscale configuration support differs; verify the chosen provider before applying an operator runbook. Anchras does not host a custom relay binary, override Tailscale path selection, or promise per-service DERP pinning.
Project network device tags
A project network on the tailnet (anchras networks attach) is enforced by tags. Each attached instance or cluster node's device carries a tag for its network (tag:anchras-net-<id>) and one for its segment (tag:anchras-seg-<id>). A background reconciler adds both tags within about a minute of an attach, and removes them after a detach. It keeps every other tag the device carries, records which tags it added, and removes only those. It never tags a user-owned (untagged) device. When the provider refuses a write, the reconciler retries with backoff.
Each attachment reports whether its devices carry their tags yet: applied, pending, failing (with the provider's reason and the next retry), or no tailnet device. A guest VM is reached by its address, so it has no tag status. The status appears in anchras networks attachments list and show, in the device_tags field of ListNetworkAttachments and GetResourceAttachment, and on the project's Networks tab and the resource's network panel. Until a device carries its tags, the network's rules do not reach it, but unattached devices still cannot reach it.
Tailscale lets an OAuth client assign only tags that its own tags own. When Anchras pushes the tailnet policy, it makes the OAuth client's tags owners of every network and segment tag, next to autogroup:admin, so no hand edit of tagOwners is needed. Existing network and segment tag declarations gain the client's tags; nothing is removed from them. For this to work:
- The OAuth client needs
devices:corewrite access and its own tag, for exampletag:anchras. That tag must be declared in the policy'stagOwners, as Tailscale requires for any tag an OAuth client carries. - No device may carry the OAuth client's tag. A device holding an owner tag could put itself on any network, so Anchras never names such a tag as an owner.
- For a customer-owned tailnet, Anchras reads the client's tags from the client's own key record. Grant the client read access to OAuth keys (
oauth_keys:read) for this. For the managed provider, the operator setsTAILSCALE_OAUTH_CLIENT_TAGS.
Without the client's tags, the network and segment tags stay owned by autogroup:admin only. Add the client's tag to them in tagOwners yourself, or the attachments show failing with the provider's refusal.
Headscale cannot assign device tags and has one policy for the whole server, so it cannot isolate a tailnet network. On a Headscale tailnet, anchras networks attach is refused with failed_precondition, and the dashboard lists the segments as not attachable with the reason.
Platform tags
The mesh ACL that Anchras pushes to the tailnet names five platform tags. For some of its rules a platform tag is the only source or destination. Anchras does not assign these tags. It enrolls agents with tag:agent, cluster nodes with tag:cluster-node and subnet gateways with tag:anchras-subnet-gateway, and nothing else. The operator tags the devices that play each part. Until a device carries a tag, every rule that relies on it reaches nothing.
| Tag | Carried by | Rules that rely on it |
|---|---|---|
tag:anchras-mesh-client | Devices that should reach every mesh service on no network: hosts whose workloads use the agent's mesh proxies, and operator machines | Source of the broad mesh rule, which reaches every service registry entry whose resource is on no network |
tag:anchras-control-plane | The Anchras control plane's own tailnet device, when the control plane joins the tailnet (for example a self-hosted control plane) | Source of "platform reaches networks" (every attached resource, all ports) and destination of "networks reach platform" (all ports) |
tag:anchras-monitoring | The monitoring collectors that scrape attached resources over the tailnet | Source of "platform reaches networks" |
tag:anchras-load-balancer | Load balancers on the tailnet that forward to attached backends, until load balancers attach to networks themselves | Source of "platform reaches networks" |
tag:anchras-mesh-dns | The resolver that attached resources query on port 53 over the tailnet | Destination of "networks reach platform", port 53 only |
The two managed rules exist only once a project network has an attached resource. The broad mesh rule exists once a mesh service is registered for a resource on no network. Each agent answers mesh names on its own host (by default on 127.0.0.1:1053), so tag:anchras-mesh-dns is needed only if your attached resources resolve through a resolver on the tailnet.
Why the operator assigns them:
- Tailscale lets a credential mint a tagged auth key, or tag a device, only for a tag that the credential's own tags own. When Anchras pushes the policy, it declares each platform tag that a rule uses as a source, if the policy does not declare it already, as owned by
autogroup:adminalone. A tailnet admin can therefore tag a device in the admin console or withtailscale up --advertise-tags, but Anchras's OAuth client cannot.tag:anchras-mesh-dnsis only ever a destination, so Anchras never declares it. Add it totagOwnersyourself before you tag a device with it. - Each tag grants reach. A mesh client reaches every service on no network, and the control plane, monitoring and load balancer tags reach every attached resource on every port. Choose which devices get that reach.
Anchras reports whether the tags are carried. On a Tailscale tailnet, anchras networks settings and GetNetworkSettings (platform_tag_carriers) compare the platform tags named by the last mesh ACL push with the tags of the tailnet's authorized devices. The state is ok, missing or unknown (the check could not reach the provider). When an authorized device carries a tag, that tag counts as carried; a device that is waiting for approval passes no traffic and does not count. When a tag is missing, the detail reads missing platform tag carriers: <tags>. The tailnet integration's health check shows the same detail but keeps the integration connected: a missing carrier is a setup gap, not an outage, so it raises no degraded notification. On Headscale the state is not_applicable: Headscale holds no per-tailnet ACL, so Anchras pushes no mesh ACL there and relies on no platform tag. The operator's server-wide Headscale policy decides these paths.
Tags Anchras owns on Anchras Network
On an Anchras Network tailnet, the tags Anchras puts on what it enrolls and publishes belong to Anchras, not to your policy: tag:agent (an agent's host), tag:cluster-node, tag:anchras-subnet-gateway, tag:anchras-recorder (SSH session recorders) and tag:anchras-idp (the identity provider), and the Service tags tag:anchras-lb (load balancers) and tag:anchras-ct (containers). Anchras declares them on every tailnet and lets agents host the Services of load balancers and containers without an approval. Your policy can name them in rules and tests without a tagOwners entry. Only Anchras assigns them: an auth key you create, a trust credential's key, an interactive login and tailscale up --advertise-tags cannot. Every other tag:anchras-* tag is reserved for Anchras too, except the mesh tags in the table above, which you assign.
Saving a policy with a tagOwners entry for one of these tags fails and names the tag. Policies that already declare them keep working: the empty entries earlier default policies wrote ("tag:agent": []) are accepted, and an entry your stored policy already holds stays as it is, though Anchras ignores its owners. The policy editor and anchras acls get list the tags read-only.
anchras networks explain and the explain-connection output name these tags when a managed rule or the broad mesh rule decides a path. A path that the explain output says is allowed through one of them still needs a device that carries the tag.
Manage the policy from a repository
Keep the tailnet policy in a repository and let CI test and apply it. anchras tailnets policy test --file policy.hujson checks the file on the server exactly as a save would, its tests, sshTests, runTests and dataTests included, and writes nothing; it needs only read access to the policy. anchras tailnets policy diff --file policy.hujson shows what a save would change. anchras tailnets policy apply --file policy.hujson --etag-cache <path> saves it; the save runs the same checks first and writes nothing when one fails. With --etag-cache, apply refuses (exit 5) when the live policy changed since the version it last applied, for instance an edit in the policy editor, until you bring that edit into the file or pass --force.
Sign CI in with trust credentials, not a person's session, and use two: one with the policy_file:read scope that trusts pull requests, for test and diff, and one with policy_file that trusts only the default branch (on GitHub, a protected environment), for apply. A pull request runs its own version of the workflow, so a credential it can reach must not be able to write the policy. Set ANCHRAS_OAUTH_CLIENT_SECRET to an OAuth client's secret, or ANCHRAS_OAUTH_CLIENT_ID to a federated identity's client ID and ANCHRAS_ID_TOKEN to the job's OIDC ID token (GitHub Actions, GitLab id_tokens, Bitbucket oidc: true). Such a credential cannot list tailnets, so also set ANCHRAS_TAILNET or pass --tailnet. On GitHub, the composite action Anchras/Platform/.github/actions/tailnet-policy does all of this: it installs the CLI from your server, exchanges the job's OIDC token (permissions: id-token: write), tests pull requests with the diff in the job summary (visible to anyone who can see the run), and applies on the default branch. Schedule the workflow weekly: GitHub evicts the cache that holds the last applied version after 7 days unused, and the weekly no-op apply keeps it and reports drift.
Run and data grants
On an Anchras Network tailnet, the same policy can say who may run workloads on which nodes and who may read or write the data stored on them. Write them as grants with the app capabilities anchras.com/cap/run and anchras.com/cap/data:
"grants": [
// Friends may run workloads on the GPU nodes.
{"src": ["group:friends"], "dst": ["tag:gpu"], "app": {"anchras.com/cap/run": [{}]}},
// The family may read what is stored on the NAS.
{"src": ["group:family"], "dst": ["tag:nas"], "app": {"anchras.com/cap/data": [{"access": "ro"}]}},
],
"runTests": [{"src": "friend@example.com", "dst": ["tag:gpu"], "accept": ["run", "gpu"], "deny": ["public"]}],
"dataTests": [{"src": "kid@example.com", "dst": ["tag:nas"], "accept": ["ro"], "deny": ["rw"]}],A run value may set gpu (default true) and public (default false, a port published to the internet). A data value needs access, ro or rw, and may name only some volumes, buckets or shares. Sources are people: users, groups, autogroup:member, role autogroups or *. A run grant's destinations are node tags; a data grant's are node tags or the data's owner, including autogroup:self.
These grants give no network access, and Anchras keeps them out of every device's network map. A grant that names one may not also carry ip, via, srcPosture or another app capability, and a capability under anchras.com/cap/ that Anchras does not know is refused. A nodeAttrs entry may not name them either: the only anchras.com/cap/ node attributes are anchras.com/cap/visible-groups and anchras.com/cap/web-client, which turns on the device web interface (100.100.100.100, port 5252) that Anchras otherwise keeps off. Saving a policy runs runTests and dataTests with the other tests. Other providers refuse a policy that uses them.
IAM decides first, and a grant only narrows what IAM allows: a run grant does not let anyone create a container they could not create before. The policy editor's Run and data panel and anchras acls explain run --node <node> --as <login> or anchras acls explain data --volume <name> --as <login> show what the policy answers, and which grant decides it.
Run enforcement
Container placement enforces run grants from the moment one grant names anchras.com/cap/run. Until then nothing changes and IAM alone decides. Once one does, a container is placed only on a node where a grant lets its owner (the person who created it) run it, with the GPUs and the public port it asks for. A public port also needs the funnel node attribute on the node. The container's Why, and why: in anchras container get, names the grant that allowed the host and explains each host the policy refused. A create the policy allows nowhere is refused with the policy's explanation and recorded in the audit log as authz.denied with the reason policy_grant_missing.
To turn run enforcement on without changing anything, use Turn on run policy in the Run and data panel, or anchras acls enable run. It inserts a grant that lets every member run anywhere, as today, and you narrow from there:
{"src": ["autogroup:member"], "dst": ["*"], "app": {"anchras.com/cap/run": [{"public": true}]}}Before you save a policy that narrows run access, the editor lists the running containers the new policy would no longer allow where they run; anchras acls update --dry-run --file <policy> prints the same list without saving. Saving marks those containers Out of policy. They are not stopped: they keep running, and their next placement (a restart on another node, their node going offline) is refused. Stop them yourself if they must not run.
Data enforcement
Node volumes and node buckets enforce data grants from the moment one grant names anchras.com/cap/data. Until then nothing changes and IAM alone decides. Once one does, a grant must let the person have the access, by the tags on the node holding the data or by the data's owner:
- A container mounting a node volume needs its owner (the person who created it) granted
rofor a read-only mount, elserw, both when it is created and at each placement. - Issuing or rotating a credential on a node bucket needs the caller granted the credential's scope (
rofor read-only,rwfor read-write). - Browsing a node bucket or reading its objects needs the caller granted
ro. - A backup plan of a node volume or a node bucket needs its creator granted
roon the source andrwon the artifact bucket when that bucket is a node bucket, when the plan is created or changed and at each run.
The person who created a volume or bucket always keeps read and write on it while data is enforced, as far as IAM allows (the owner rule). Cloud buckets and cluster volumes have no node, so no data grant covers them and IAM alone decides there. A refusal names the grant the person lacks and what the policy does grant them, and is recorded in the audit log as authz.denied with the reason policy_grant_missing.
File shares are always enforced. A folder shared with anchras share is private to the person who shared it from the start, whether or not the policy names anchras.com/cap/data otherwise: the files source broker checks ro on every share it issues a source for (files get, the dashboard, a mount, an MCP tool, a file sent from the share) and rw on every write it commits to a workspace, with the owner rule. One grant shares it, by the sharer's login as the destination:
// Bob may read Alice's Projects share, and nothing else of hers.
{"src": ["bob@example.com"], "dst": ["alice@example.com"], "app": {"anchras.com/cap/data": [{"access": "ro", "shares": ["Projects"]}]}}You need not write the grant yourself: Share with… on a share's row on /files, the Share with field when sharing a folder, and anchras share with laptop:/Projects bob@example.com [--access rw] write exactly that grant into the policy (the sharer, or anyone who may edit the policy, on an Anchras Network tailnet); Shared with and anchras share access list who a share is shared with and by which grant, operators' broader grants included; Revoke and anchras share revoke take people out again. A machine reads and writes as the person who registered it. The shares table on /files and anchras share list show your standing on each share (owner, read and write, read-only, or no access, with the grant that decides it), files find leaves out what you may not read, and anchras acls explain data --share Projects --as bob@example.com answers the question for anyone. Workspaces and drop folders follow the policy like node volumes: nothing is checked on them until a grant names anchras.com/cap/data. A partner's staff member is named by their login like anyone else; they still need delegated access to the organization to call the API at all.
To turn data enforcement on without changing anything, use Turn on data policy in the Run and data panel, or anchras acls enable data. It inserts a grant that lets every member read and write all stored data, as today, and you narrow from there:
{"src": ["autogroup:member"], "dst": ["*"], "app": {"anchras.com/cap/data": [{"access": "rw"}]}}Before you save a policy that narrows data access, the editor lists the node volume mounts, node bucket credentials and backup plans the new policy would no longer allow; anchras acls update --dry-run --file <policy> prints the same list. Saving marks them Out of policy. Nothing is revoked or stopped: a marked container keeps running, a marked credential keeps working, a marked plan stays active, and their next placement, rotation or run is refused. Revoke or stop them yourself if they must not keep their access.
Node tags
A node's tags are the tags on its tailnet device. The access rules, --on tag:NAME placement and run and data grants all match the same tags, and only someone your policy's tagOwners allows can apply one. Set them on the instance page's Tags and labels tab, on the Devices tab, or with anchras tailnets devices tag; anchras instances tags <node> shows them.
An instance's tags label is not a node tag, because anyone who may update the instance can change it. It no longer matches a --on tag:NAME selector, and it never counts for a grant. Move to node tags on the instance page, or anchras instances move-label-tags <node> --yes, sets the label's tags on the device. A tag that tagOwners doesn't declare is declared, owned by autogroup:admin, only when you confirm it (--declare-tag-owners). Tick Remove the tags label in the move, or add --clear-label, to remove the label once the device carries its tags.
Other instance labels are key=value facts that --on KEY=VALUE matches. Add, edit and remove them on the same tab or with anchras instances labels set <node> KEY=VALUE and anchras instances labels unset <node> KEY. The labels Anchras and the agent write, such as os_info and provider_kind, can't be changed.
Network Sites and underlay observations
Network sites (Network → Overview → Physical network) manages the network details of the organization's sites (Settings → Sites). Create a site, then edit its notes and canonical CIDRs. Site metadata does not move instances. A current connected interface can be explicitly grouped under a site; this is a descriptive override, not permission to reach its addresses. CIDRs never authorize routes, gateways or private provider access. A site with current or retained placement, integration, volume, bucket, registry, load-balancer or network-operation references cannot be deleted.
Underlay co-location groups current, readable agents with a shared site, connected prefix, routing context and compatible VLAN evidence. It is separate from the existing Tailscale overlay path view. Matching a /24 does not prove physical attachment or packet reachability. Different sites with identical CIDRs remain separate; overlapping CIDRs without an unambiguous site stay unresolved. Stale, rebound, revoked or future observations cannot establish a current pair. Pagination and collection limits are explicit; missing edges do not prove isolation.
The default privacy mode is Anchras peers only: neighbor counts are retained, while raw identifiers are limited to current peers in the same approved placement site and segment. LLDP details and local interface MAC addresses are off by default. A narrowly scoped active gateway intent may retain its verification target's neighbor evidence privately for gateway qualification; the general inventory view never exposes that private witness. Descriptive interface overrides do not expand this allowance.
Off suppresses all periodic neighbor/LLDP details, including those gateway witnesses, even when a detail checkbox was previously enabled. Gateway qualification then explains that periodic verification is disabled by privacy; it does not change routes or claim that the target is unhealthy. Bounded neighbor sample opts into at most 32 general neighbor addresses; neighbor MAC addresses remain withheld. LLDP details and local interface MAC addresses have separate opt-ins.
Privacy writes serialize with ingestion and inventory reads and scrub stored detail. Upgraded agents receive a policy lease lasting at most two minutes: missing, expired or instance-mismatched policies withhold detail. A disconnected agent can transmit evidence under its previous lease until it expires; the server applies the current policy before persistence and reads. Older agents' raw reports are also sanitized at the server. Existing legacy snapshots without a current reporter binding remain historical and cannot qualify a current interface or topology edge. Component/error codes and coverage flags remain visible, while neighbor/LLDP diagnostic text is sanitized.
Use anchras networks sites, anchras networks privacy, anchras networks underlay, and anchras networks inventory <instance_id> for the same operations. Writes require the displayed generation or revision; after an uncertain result, refresh instead of guessing the next value.
Native inventory CIDR suggestions
Select an existing network site to review attached-network CIDRs from its MikroTik RouterOS or UniFi read integrations. Each suggestion shows source evidence, observation time, eligibility and coverage limits. Accepting a suggestion appends one prefix to the site without replacing its name, notes or other CIDRs. It does not change routing, VLANs or instance placement.
Use anchras networks sites suggestions <site_id> and anchras networks sites accept-cidr <site_id> --integration <id> --observation <id> --candidate <sha256> --expected-generation <n> --request-key <key> --yes for the same workflow. Keep the complete request after an uncertain response. Repeating it returns the original receipt, even if the integration was disconnected or the CIDR was removed later; it does not add the prefix again. Current configuration is shown separately from the historical receipt.
Mesh names on Linux hosts
The agent answers the organization's mesh names (*.anchras.internal and any split-horizon names) on its local DNS responder. Host processes reach them through the host's resolver:
- systemd-resolved 258 or later as the stub resolver: the agent installs a route-only DNS delegate that sends only the mesh names to its responder.
- dnsmasq: the agent's dnsmasq drop-in routes the mesh names, one zone per line.
- systemd-resolved older than 258 (Ubuntu 22.04 and 24.04, Debian 12 and 13, RHEL 9): no safe routing exists. The node reports
applied_with_warningswith a warning that DNS delegates need systemd 258.
Changed in October 2026. Earlier agents routed the mesh names on systemd-resolved hosts with a global resolved.conf.d drop-in. systemd-resolved uses every global DNS server as a default route, so unrelated lookups from the host also went to the agent, and its answer could win. Current agents no longer write that drop-in, and they remove the copy an earlier agent wrote. On systemd-resolved older than 258, host processes therefore stop resolving mesh names through the host stub resolver. Where systemd-resolved can reload, this happens at once. On Ubuntu 24.04, it happens at the next systemd-resolved restart or reboot, and until then every config push warns that the old route is still loaded. Hosts that resolve through dnsmasq are unaffected. To keep host-wide mesh name resolution, run systemd 258 or later, or dnsmasq.
Each node's DNS warnings are shown under DNS warnings in the mesh rollout evidence and by anchras mesh config rollout and anchras mesh config applications.
Policy changes from Git
Keep a tailnet policy file in a repository with the Anchras tailnet policy action. Use a read-only trust credential to test pull requests and a separate write credential behind a protected environment to apply from the default branch. The action downloads the CLI from your server and supports a pinned SHA-256. Policy diffs appear in the workflow summary; a lost cache removes the cross-run drift guard for one apply. See the action README for setup and provider limits. The CLI also supports GitLab and Bitbucket pipelines through anchras tailnets policy test, diff, and apply.
CLI commands
Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.
| Command | Purpose |
|---|---|
networks list [--search S] | The project's networks (ADR-073 §6, ListNetworks): slug, name, substrate, the regions its segments span, the segment count and, for a tailnet network, its isolation (enforced, pending or unenforced with the reason code; ADR-008 D5, ADA-2167). --project selects the project (or the global --project, ANCHRAS_PROJECT, the profile's saved project). Before ADA-1800 this listed tailnets: use tailnets list. |
networks get <id-or-slug> | One network with its segments by region. A slug is unique only within its project, so it needs --project; an id does not. A network in a project you cannot see reads as not found. A tailnet network shows its isolation: enforced, pending (the mesh ACL push has not checked the organization yet, or is holding back new grants while a region's inputs are stale) or unenforced with a reason code (provider_no_policy, device_tags_unsupported, foreign_allow, rule_not_expressible) and its message; -o json carries isolation beside the older enforcement. |
networks create <slug> --substrate tailnet\|native [--name NAME] [--tailnet ID] | Create a network in a project (admin/owner). The substrate never changes. tailnet is an ACL segment compiled onto the organization's tailnet (--tailnet, default the primary; isolation mode shared_tailnet, while --isolation dedicated_tailnet is reserved and refused); native is site and provider networks whose devices enforce isolation, declared but not yet enforceable. Slugs are unique per project. |
networks update <id-or-slug> --name NAME / networks delete <id-or-slug> | Rename a network, or delete one with no segments left (refused naming the segment count). A project that still has networks cannot be deleted. Admin/owner. |
networks segments list <network> [--region R] / segments get <segment-id> | A network's segments, optionally in one region: region, CIDR and site or location binding. |
networks segments create <network> --region R [--site S \| --location L] [--cidr C] [--name NAME] | Add a segment in an active region (a draining region refuses it), optionally bound to one of your sites (id or slug) or a location of that region. CIDRs may not overlap within a network and may across networks; a CIDR with host bits set is refused. A native network's segment needs a binding and a CIDR. Admin/owner. |
networks segments update <segment-id> --name NAME / segments delete <segment-id> | Rename a segment (network, region, binding and CIDR are fixed), or delete it; a segment with resources attached is refused naming the count: detach them first. A site bound to a segment cannot be deleted. Admin/owner. |
networks attach <resource-arn> --segment <segment-id> | Attach an instance (arn:anchras:compute:<region>:<org>:instance/<id>), a guest VM (…:instance/<id>/vm/<vmid>) or a managed cluster node (arn:anchras:cluster:<region>:<org>:cluster/<id>/node/<id>) to a segment (ADR-073 §6, AttachResource). Records the attachment and includes it in network/segment ACL compilation, with managed control-plane, mesh-DNS, monitoring and load-balancer paths. Refused with failed_precondition when the resource is in another project or region, when the network is native (naming the networkdevice or subnetgateway capability its site lacks), or when the resource is already on a segment. Residency-policy enforcement is pending the separate ADA-1936/#2723 slice; device-tag convergence and platform-tag rollout are also required before network isolation is qualified (ADA-1936/#2664). Live and cross-region reachability remain unproven. Member and above. |
networks attach <resource-arn> --segment <segment-id> --preview | Attach nothing; list who would lose reachability if the resource attached (PreviewAttach, ADA-1804): organization members (their own devices), tailnet devices that carry no resource (laptops, workstations) and the devices of other instances and cluster nodes that reach it now and have no path into the network: no member-or-above role on its project, on no network or on another network. Computed from the compiled mesh ACL with and without the attachment. Devices of resources in projects you cannot read are counted, not named. Refused exactly as attach would refuse. Member and above. |
networks detach <resource-arn> | Remove a resource's attachment (DetachResource); subsequent ACL compilation uses its unattached rules. Device-tag convergence and live reachability remain rollout dependencies. An attached resource cannot move to another project until it is detached. Member and above. |
networks attachments list <network> [--segment S] / attachments show <resource-arn> | What is attached to a network's segments (ListNetworkAttachments), or one resource's attachment with the segments of its project and region it could attach to and why any cannot (GetResourceAttachment). |
networks tailnet-login show [--user U] / list | The login the compiled tailnet ACL names a member's own devices by in the project user groups (GetTailnetLogin, ListTailnetLogins, ADA-1941): the member's tailnet login when one is set, otherwise their Anchras email. show defaults to you (any member reads their own, read-only); --user takes a user id or a member's email and, like list, needs the right to list members. Partner staff acting through delegated access are not members and reach no project's networks. |
networks tailnet-login set <login> --user U / clear --user U | Set or clear a member's tailnet login (SetTailnetLogin, ClearTailnetLogin): user@domain, user@github, user@passkey, or a Headscale user name with its trailing @, stored lowercase. Organization admins and owners only (team.update), for any member including themselves, always named with --user: a login gives the identity it names the member's project network access, so there is no self-service. A login that is another member's tailnet login, or the email of another member with none set, is refused (already_exists). On a Headscale tailnet the compiled groups name no user (its policy is server-wide), and networks explain says so. |
networks settings | Provider kind, optional active provider switch state, and whether a device carries each Anchras platform tag the pushed mesh ACL relies on (GetNetworkSettings, ADA-2095): platform_tag_carriers is ok, missing (with missing platform tag carriers: <tags>), not_applicable (Headscale holds no per-tailnet ACL, or no provisioned tailnet) or unknown. See platform tags. |
networks connect | Connect NetBird with --provider netbird --credentials-file <private-file>; optional tag:cluster-node and guest_binary fields enable the pinned VM guest bootstrap recipe. Legacy integrations use --tailnet, --client-id, and --client-secret-file; --validate-only checks without saving, and --provider managed / --provider headscale select operator networking. Replacing a current provider requires --replace and unenrolls existing devices. Connect with --tailnet, --client-id, and --client-secret-file. Validates OAuth read access before connecting. Use --validate-only to test without saving, or --provider managed / --provider headscale / --provider anchras for operator networking (anchras is the Anchras coordination server, where the deployment configures it). Replacing a current provider requires --replace and unenrolls existing devices. A switch from Tailscale (managed or your own) to anchras keeps each instance's overlay IPv4 address, and the IPv6 address derived from it, when it enrolls again. A switch from headscale to anchras keeps the IPv4 address, but the IPv6 address changes, because Headscale assigns IPv6 addresses separately. Every other switch gives devices new addresses. The command prints which applies. |
networks switch retry/cancel/dismiss <switch_id> | Retry a failed connection, cancel during preparation, or dismiss a failure to start over. Check progress with networks settings. |
networks show <tailnet_id> | One tailnet row (GetTailnet). <tailnet_id> may be a unique prefix, as tailnets list prints it. |
networks devices | Paginated Tailscale devices (--tailnet; default primary). INSTANCE is the instance a device is bound to and OWNER the person it is logged in as (Anchras coordination server only; - for a tagged device), so a person's Mac bound to its instance is one row, the machine with its person (ADR-082 §2). A device whose instance is a personal device is marked (personal); a member who is neither its person nor an admin sees only its name, instance, person and whether it is online (LAST_SEEN reads online or offline), not its address, tags, state or key expiry (ADR-082 §4). With -o json, platform_tags are the tags only the platform's rules read while the device is bound, never in tags. At the global endpoint the list holds every region's devices of the tailnet, merged newest enrolment first (ADA-2586); a region that does not answer is named on stderr (note: partial list: ...). |
networks devices enroll <instance_id> | Enroll an instance or recover a logged-out or removed node (EnrollHost); --tailnet <id> selects a network, otherwise the primary is used. New instance nodes persist until explicitly retired. At the global endpoint an instance of another region is enrolled by its region (ADA-2586). |
networks devices import | Record a node no Anchras agent enrolled (for example a Tailscale Aperture node) in the organization's device inventory, by --hostname or --provider-device-id (ImportDevice). Re-run to refresh its address from the provider. |
networks dns get / dns update | Read or update MagicDNS, resolvers and search domains (--tailnet; default primary). A resolver is an IP address or, on the Anchras coordination server, a NextDNS or Control D DNS-over-HTTPS endpoint (https://dns.nextdns.io/<profile>, https://dns.controld.com/<resolver>), whose profile policy nodeAttrs nextdns:<profile> / controld:<resolver> override per device (nextdns:no-device-info stops sending device information to NextDNS; it is NextDNS-only, and Control D still receives the device name as its client ID). Headscale writes require operator HEADSCALE_CONFIG_PATH because DNS is server-wide. |
networks advice / recommend | Organization-wide non-binding DERP/peer-relay recommendations from current typed observations (GetRelayAdvice); table/JSON includes coverage, freshness, bounded edge evidence, and operator actions. |
networks topology | ACL-derived graph overlaid with recent agent peer telemetry (GetTailnetTopology); -o json includes edges with latency/path/rate fields; table prints nodes only. At the global endpoint the graph holds every region's nodes, with the policy edges between them (ADA-2586); a region that does not answer is named on stderr. |
networks inventory <instance_id> | Inspect interfaces, connected subnet candidates, descriptive site associations and Layer 2 observations with freshness, withheld-detail counts and coverage limits. |
networks sites list / get <site_id> | Read organization-owned on-prem sites, CIDRs, notes and current generation. |
networks sites suggestions <site_id> [--integration <id>] | Read attached-network CIDR suggestions with immutable observation identity, eligibility, coverage limits and expected site generation. Uses native read integrations only; historical evidence cannot authorize acceptance. |
networks sites accept-cidr <site_id> --integration <id> --observation <id> --candidate <sha256> --expected-generation <n> --request-key <key> --yes | Append one exact observed CIDR, preserving all other metadata. Keep the complete request and key after uncertain errors. Replays return the original receipt after source disconnect or manual prefix removal, without adding the prefix again. Already configured prefixes record a no-op receipt without advancing generation. No routing, VLAN or provider change is performed. |
networks sites create --name <name> --country <ISO2> [--slug <slug>] | Create an on-prem site using the existing region identity. |
networks sites update <site_id> --name <name> --expected-generation <n> [--notes <text>] [--cidrs <csv>] | Replace site metadata and all configured CIDRs; omitted notes/CIDRs clear them. Refresh after a concurrent edit. |
networks sites delete <site_id> --expected-generation <n> --yes | Delete only an unreferenced site; current and retained placement/operation references block deletion. |
networks sites associate --instance <id> --candidate <id> (--site <site_id> \| --clear-site) | Set or clear a descriptive current-interface site override without changing instance placement or routing authorization. |
networks underlay [--site <id>] [--page <n>] [--page-size <n>] | Read paginated inferred co-location between readable current agents; response reports bounded coverage. |
networks privacy get / set --neighbor-detail <off\|anchras_peers_only\|sampled> --expected-revision <n> [--lldp-details] [--interface-mac-details] | Read/update organization inventory privacy. Off dominates detail flags and periodic gateway witnesses; setting writes scrub retained inventory detail. |
networks explain <name\|address> [--source <instance_id>] | Explain every organization resource that claims a name or IP address (the D8 endpoint routing plan): mesh registry names (flat, region, organization-qualified, split-horizon shadow and customer-domain translations), load balancers (tailnet, Funnel, edge ingress, cloud), InternalDNS records including wildcards, private/public/split-horizon customer hostnames, tailnet devices and subnet-routed addresses. Each match shows exposure, transport class, the recorded DNS and TLS story and, for addresses, the covering managed gateways, prefix route policies (including retained DENY) and network sites. Short names are tried under anchras.internal and the organization network domain. With --source, registry matches embed the source connection explanation and tailnet matches show the latest observed peer transport. Customer-name matches hide *.ts.net targets unless --include-provider-details; matches the caller cannot read are omitted. Recorded state only: no DNS query, provider read or probe. |
networks explain --from <source> --to <destination> | Evaluate the compiled mesh ACL for one path (ExplainNetworkPath, ADR-073 §6, ADA-1804). The source is a user (alice@example.com, their tailnet login, or user:<id>: the user's own devices), an instance or cluster node ARN, an instance id or a tailnet device id; the destination an instance, guest VM or cluster node ARN, an instance id or a mesh registry entry id. Shows whether the path is allowed and via what: the network and segment both sides sit on, the managed rule (control plane, monitoring, load balancers, mesh DNS), the project binding or organization role that admits a user (a member-or-above role on the network's project; a viewer binding admits nothing), a workload grant, the broad mesh-client rule, or flat reachability for a destination on no network. Lists each excluded path with its reason (for example a binding on another project) and the config version evaluated. When the destination (else the source) is on a network, isolation: says whether the tailnet provider enforces that network's isolation, naming the reason code and message when it does not (ADA-2167); the same line appears in the network path section of a connection explanation. Operator-authored tailnet rules are not evaluated. A resource you cannot read is not found. |
networks explain <registry_entry_id> | Explain the source instance's endpoint selection and linked-LB recorded delivery, DNS and certificate metadata with coverage totals; the network path section is the compiled ACL's decision for the source instance's device (as --from/--to reports it). Qualified customer hostnames are preferred in table output; --include-provider-details reveals canonical addresses, and JSON/YAML retains original API fields; an explicit probe records separate reachability evidence and its route-policy identity/revision. Gateway probes require fresh, command-bound admission and use the selected tailnet without a host-network fallback. |
mesh config rollout [--version <n>] [--compliance <status>] | Read paginated agent configuration evidence. The separate resolver capability summary covers the full version target population, including stale, unsupported and unverified domain observations; table, JSON and YAML retain this summary. Resolver application does not establish certificate installation. |
mesh config acl | Read the global mesh ACL push's last check (MeshService.GetACLPushStatus, ADA-1803): each region's input watermark (the global replication heartbeat its last mesh pass had applied; local for the global region), whether it shipped a fragment, and whether its inputs are stale (no_watermark, past_bound or compile_failed; the bound is shown). State current, stale_inputs (the live ACL is still the assembled one) or held (a stale region's inputs could hide a change, so the push keeps only what both the live ACL and the current fragments allow: revocations go out, nothing new is granted until every region is fresh), or unenforced (the tailnet provider cannot enforce the ACL), printed with its reason code and message: provider_no_policy (no managed policy, e.g. Headscale: nothing is pushed), device_tags_unsupported (attached devices cannot carry their network tags), foreign_allow or rule_not_expressible (ADR-008 D5, ADA-2167). |
mesh registry list / get / create / update / delete | Mesh service registry entries via MeshService. An entry stores no project: it belongs to the project of the resource it points at (its instance, bucket, load balancer, DNS zone, volume, fleet or inference server; the default project when there is none), shown as project_id in get and -o json. list shows one project (--project, default: the global --project, then the saved project; required) with --kind, --status, --query, --region <region-id>, --region-key <key> (the label or site id in the entry's region-qualified mesh DNS name), --address-kind, --internal-tls-mode, --deputy-eligible. REGION is the region the entry's region key resolves to; REGION_KEY is the key itself. A name is unique per organization and region (not per project: mesh DNS and TLS names are organization-wide). Region keys that resolve to one region share it, so every placement label (they resolve to the global region) shares one slot and a site of another region has its own; entries with no region key share one more. create and update answer a clash with already_exists naming the region. create <name> --instance <id> enrolls an instance-owned entry in the instance's project: --project only asserts it, refused with failed_precondition when it names another project, and only an explicitly given --project (or ANCHRAS_PROJECT) is sent, never the profile's saved project. Another project's entry reads as not found. |
networks native / networks connectors | Create, apply, probe and remove explicit native endpoint bindings and managed connectors with optional authorized tailnet fallback. |
networks gateways | Preview and manage subnet gateways, source-preserving routes, HA groups, automatic reply paths, registry/prefix gateway policies and managed peer relays. |
networks gateways return-paths configure --file definition.json | Explicitly configure an independent target's automatic per-flow reply path using its current LAN inventory and two admitted router candidates. Optional forwardedPaths bind downstream interface names/prefixes for routed/DNAT replies; the server derives the current interface identity. Remote prefixes additionally require nextHop and an explicit nextHopMac pin, verified against a permanent kernel neighbor by the target agent. This grants no forwarding or NAT permission. Repeating an unchanged create returns its durable intent. Include id and expectedRevision to refresh or reconfigure after acknowledged withdrawal. |
networks gateways return-paths get ID | Read the current revision, target receipt and freshness. |
networks gateways return-paths delete ID --revision N | Request exact withdrawal; an offline target remains pending and its durable ownership is retained. |
networks gateways preview / create ... --exit-node | Exit-node mode (ADA-2198): the gateway also advertises 0.0.0.0/0 and ::/0 and forwards its source tags' internet traffic (autogroup:internet) out of its LAN interface, masqueraded. Set at creation; snat mode only, and refused (failed_precondition) unless the provider declares the exit_nodes capability. The gateway approves its exit routes with its prefix and withdraws them with it, and its access rule also grants its source tags autogroup:internet; it applies only while the tailnet policy lets no other source reach the internet and the denied probe source cannot. get shows exit_node. |
networks gateways withdraw <id> --revision <n> / force-withdraw <id> --revision <n> --yes | Withdraw a gateway (WithdrawSubnetGateway). Its tailnet provider route approval and access rule go once the host reports its runtime withdrawn; a withdraw that ends without that report lands the gateway in error, and withdrawing again sends the next revision. When the gateway's instance is terminated (or released), its agent never answers, so withdraw finishes at once: the server removes the provider state, the gateway's managed peer relays' grants and owned device tags, and records the gateway withdrawn, audited as subnet_gateway.force_withdrawn (ADA-2254). The server withdraws an active gateway whose instance is terminated the same way within a minute, audited as the system's with reason instance_terminated, and notifies the organization's admins (ADA-2331). Once the gateway's runtime is gone (its host reported it withdrawn, or its instance is terminated), the server also deletes the runtime's own tagged tailnet device, audited as subnet_gateway.device_retired (ADA-2330, ADA-2334). force-withdraw (ForceWithdrawSubnetGateway) does the same for a host that is unreachable but not terminated; the withdraw command stays queued, so a host that comes back tears its runtime down. It needs --yes, the same permissions as withdraw (admin/owner: tailnet.update and tailnet.acl.update), and is audited. A provider cleanup that does not complete leaves the gateway withdrawing with the reason; force-withdraw again to retry. |
networks integrations | Register credential references and inspect supported MikroTik RouterOS and UniFi network devices. |
networks routes | Preview, apply, update, refresh and withdraw an Anchras-owned RouterOS static route. |
networks access-vlans | Preview, apply, confirm through endpoint evidence, restore and delete RouterOS access-port VLAN assignments. |
networks unifi-vlans | Preview, apply, update, refresh, remove and delete a bounded UniFi gateway VLAN network. |
networks domains | Manage customer-domain private bindings, client resolution, public publications and explicit dual-view bindings. |
networks domains [private\|dual] list [--project <id\|slug>] [--include-terminated] | List public publications, private bindings or dual-view bindings. A binding is in the project of the load balancer it serves (for a dual-view binding, either child's); --project (then the global --project, then the profile's saved project) lists only that project's, and with none every binding you can read is listed. |
networks domains organization get | Read the organization network domain, authority status, current revision and compiled projection. Compilation does not establish DNS, resolver-search or certificate readiness on an agent. |
networks domains organization set --revision <n> --request-key <uuid> --enabled=true\|false --domain <domain> (--managed-zone <uuid> \| --byo-binding <uuid>) [--search-domains] | Replace the complete desired setting using the original revision (0 when absent). Disabling still requires the retained domain and authority reference. Search configuration is opt-in and defaults to false. After an uncertain result, replay the same request key and exact original flags; the CLI never fetches a newer revision or replaces the key automatically. A replay can report an older accepted revision alongside a newer current setting. |
networks domains organization translations [--registry-entry <uuid>] [--resource-kind <kind> --resource-id <identity>] [--hostname <name>] [--page <n>] [--page-size <n>] [--provider-details] | Read customer hostnames with separate DNS and TLS status. Provider targets are omitted unless explicitly requested, including in JSON/YAML output. Resource-kind and resource-ID filters must be supplied together. |
acls get | ACL JSON/HuJSON for --tailnet (default: primary; if none, pass explicit UUID). Member-readable. On an Anchras Network tailnet it also lists, on stderr (platform_tags with -o json), the tags Anchras declares itself. |
acls update | `--file` required (- = stdin). Admin/owner. Pushes policy to provider + cache. On an Anchras Network tailnet it prints the save report: the running containers the new policy's anchras.com/cap/run grants no longer let their owner run where they run, and the node volume mounts, node bucket credentials and backup plans its anchras.com/cap/data grants no longer let their owner have. They keep running and working, marked out of policy, and their next placement, rotation or run is refused (ADR-079 §6). --dry-run validates the policy and prints the report without saving it. |
acls enable run\|data [--dry-run] | Turns run or data enforcement on (ADR-079 §6): inserts into the stored policy the grant that reproduces today's behaviour (run: {"src": ["autogroup:member"], "dst": ["*"], "app": {"anchras.com/cap/run": [{"public": true}]}}; data: {"src": ["autogroup:member"], "dst": ["*"], "app": {"anchras.com/cap/data": [{"access": "rw"}]}}), so the switch changes nothing and you narrow from there. A policy that already names the capability is left alone. --dry-run prints the policy with the grant inserted, unsaved. Admin/owner. Anchras Network tailnets only. |
acls explain run --node <node> [--as <login>] [--gpu] [--public] \| acls explain data (--volume\|--bucket\|--share) <name> [--access ro\|rw] [--node <node>] [--as <login>] \| acls explain move --from <node> --to <node> | What the policy's run and data grants (anchras.com/cap/run, anchras.com/cap/data, ADR-079) answer for one person (default: you) and one node, node volume, node bucket or file share: allowed by which grant, refused and what the policy does grant that person, or not enforced because no grant names the capability. --draft <file> explains a policy before you save it. Readers of the policy. Container placement enforces run grants once one names anchras.com/cap/run, and node volumes and node buckets enforce data grants once one names anchras.com/cap/data (the creator of a volume or bucket always keeps read and write on it); until then IAM alone decides, and the answer says so. A file share (--share, the share part of machine:/share, --node when the name is on several machines) is always enforced: private to the person who shared it until a grant names someone else. Anchras Network tailnets only. acls get lists, on stderr (policy_capabilities with -o json), which grants name each capability and which kinds are always enforced. acls explain move instead says whether the policy lets the first node's agent stream a moving workload's volumes to the second's on TCP 41800-41899 (anchras move) and names the rule that allows it: on an Anchras Network tailnet the platform rule tag:agent -> tag:agent:41800-41899, which covers every agent's node; on Tailscale or Headscale the policy's own rule, or the grant to add when none does. Every provider. |
API reference
Browse procedures, request and response types, and download the complete OpenAPI contract.
