Commands
rdx host access
See which of your Tailscale devices this computer's host lets in, and print the lines that grant a device access.
rdx host access shows who this computer's host lets in over Tailscale, and prints the lines that grant a device access in your Tailscale admin console. It runs on the computer you host from and reads that computer's own Tailscale. It saves nothing and changes nothing: access is given in the Tailscale admin console and nowhere else.
Synopsis#
rdx host access
rdx host access snippet
rdx host access snippet <device> [<device>...]
rdx host access snippet --all
rdx host access --wait <device>The rule#
A host lets a device in over Tailscale only when both of these are true:
- The host's own Tailscale shows the device as one of yours: same account, untagged, not shared in, not expired.
- The device holds the Tailscale application capability
getrdx.io/cap/rdxtoward the host.
The capability is a grant you create in your Tailscale admin console. It is the only way in over Tailscale: RDX has no setting on any computer that lets a device in without it. The capability alone never admits a device: the identity checks in step 1 come first. Saved LAN pairings are a separate way in and are not affected.
Show the rule#
rdx host accessTailscale access: only devices granted RDX access in the Tailscale admin console.
This version of RDX has no setting that lets a device in over Tailscale without the grant: the Tailscale admin console is the only place access is given.
If RDX over Tailscale is your only way to reach this computer, put the grant in place first: without it a host of this version refuses your device, and you then reach this computer only through a saved LAN pairing or at the computer itself.
DEVICE GRANT TRIED TO REACH THIS HOST
desk-pc granted
travel-laptop not granted 4 min ago
rdx host access snippet <device> prints the lines that grant that device in the Tailscale admin console.The table lists your other Tailscale devices.
| Column | Meaning |
|---|---|
DEVICE | The name rdx list shows. When two devices report the same name, each is shown with the name Tailscale gives it in front, so you can tell them apart. |
GRANT | What your local Tailscale says the device holds toward this computer: granted, not granted, grant not understood by this RDX (such a device is let in nowhere) or unknown (Tailscale gave no answer in time). |
TRIED TO REACH THIS HOST | How long ago the host last refused the device. The host keeps up to 16 devices, each for 30 days after its last try. Any request counts, including a status check from rdx list or rdx tui. |
If the host running now was started by an older RDX, the command says so: such a host admits every device on your Tailscale account until it restarts with this version. If the running host cannot be checked, the command says that and states the rule for a host of this version.
Print the grant lines#
Run snippet with no device first. It prints nothing that grants anything. It lists your other Tailscale devices, each with the command that prints the lines for it:
rdx host access snippetThen name the device you want to grant:
rdx host access snippet travel-laptopLines for the tailnet policy file in the Tailscale admin console (Access controls):
They grant access to one device: travel-laptop.
"hosts": {
"studio-mac": "192.0.2.10",
"studio-mac-v6": "2001:db8::10",
"travel-laptop": "192.0.2.20",
"travel-laptop-v6": "2001:db8::20"
},
"grants": [
{
"src": ["travel-laptop", "travel-laptop-v6"],
"dst": ["studio-mac", "studio-mac-v6"],
"app": {"getrdx.io/cap/rdx": []}
}
]The command also prints notes under the lines. Merge the lines into the hosts and grants sections your policy already has, and keep your acls: the grant gives no network access by itself. Add it in the Tailscale admin console under Access controls. See Use RDX with Tailscale.
- Use the name from the table, ignoring letter case, or the start of a name that only one device begins with. If two devices have the same name, the command asks you to type the name Tailscale gives the one you mean.
- Name several devices to get one grant for all of them:
rdx host access snippet travel-laptop desk-pc. The second line then says how many devices the lines grant. Each word names one device, and a device named twice counts once. - The aliases stand for each device's first Tailscale address and first IPv6 address, and for this computer's. They use the name Tailscale gives the computer, so lines printed on different computers do not collide in one policy file.
- An alias names one address. A device that is removed from Tailscale and added again gets a new address, and its alias has to be updated.
- If your policy already has one of these aliases for another address, give it another name in these lines, in
hostsand in the grant.
Every device#
rdx host access snippet --all--all prints the lines with autogroup:member as the source: every member device of your tailnet, including ones added later. RDX still refuses tagged, shared and expired devices, and a device that is not one of yours. "src": ["*"] also works and is wider, and changes nothing for RDX. The command says so in its notes. Only --all makes lines for every device; a name that is left out never does.
The table and the lines contain your devices' names and Tailscale addresses. RDX writes them to no log. Do not paste them into public places.
Wait for a device#
rdx host access --wait travel-laptopPrints the lines for that one device, as snippet does, then waits until the running host lets it in. It looks every 10 seconds and gives up after 10 minutes. Press Ctrl+C to stop waiting earlier.
While it waits it says what it sees each time that changes: whether the device holds the grant, and whether the host running here keeps to the access rule. It ends in one of two ways:
travel-laptop is now let in: it holds the grant, and the host running here keeps to the access rule. The host lets it in at its next try.The command exits0.Stopped waiting after 10 minutes. Nothing was confirmed.(orStopped waiting. Nothing was confirmed.after Ctrl+C), followed by what it saw last. The command exits1.
--wait only reads. It changes nothing on the host or in Tailscale. It never reports success for a host that is older, that could not be checked, or that is not running. The device you name needs the lines in your policy first, so merge them and save the policy while the command waits.
Platforms#
rdx host access runs on macOS, Windows and Linux. RDX asks the Tailscale program the host asks, found in fixed places only. It never searches your PATH and never reads a path from the environment, so the command and the host cannot disagree about which program answered. When the host finds no Tailscale program where it looks, it lets nobody in over Tailscale, and the command says that too.
Exit behavior#
The command exits 1 when Tailscale cannot be read, when a name matches no device or more than one, or when --wait ends without confirming. 2 for invalid arguments. With RDX_STATE_DIR set, the command does not read the running host or the devices that tried to connect, and --wait is refused.
See also#
Security and trust, Use RDX with Tailscale, rdx host, rdx tui.