RDX / docs

    Loading index

    getrdx.ioPricingSign in

    Guides

    Use RDX with Tailscale

    Reach your own computers from anywhere with no code and no prompt, once you grant access in Tailscale.

    With Tailscale on both computers and a one-time grant in your Tailscale admin console, rdx join <name> connects with no code and no confirmation, from any network.

    RDX hosts deny by default. A device of yours joins over Tailscale only when you have granted it RDX access in the Tailscale admin console. That grant is the only way in: no setting on the host replaces it.

    Before you start#

    • Tailscale installed and signed in on both computers, as the same user
    • Neither computer is a tagged device, and neither was shared in from another user
    • The host running rdx host with permissions granted

    Check both computers are online#

    bash
    tailscale status

    Both should show as online under your account.

    Grant access in Tailscale#

    On the host's computer, list your other devices:

    bash
    rdx host access snippet

    This prints nothing that grants anything. It lists each of your other Tailscale devices with the command that prints the lines for it. Pick the device you want to connect from and run its command:

    bash
    rdx host access snippet travel-laptop
    text
    "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": []}
      }
    ]

    Then:

    1. Open the Tailscale admin console and go to Access controls.
    2. Merge the hosts and grants lines into the sections your policy already has. Keep your acls: the grant gives no network access by itself, so the viewer must still be allowed to reach the host's RDX port (TCP 49379).
    3. Save the policy. The host reads the grant from its local Tailscale, so it takes effect as soon as that Tailscale has the new policy.

    The grant names this computer as the destination. Each computer you host from needs its own lines, so run the command on each one. The capability never admits anyone on its own: a device must also be an untagged device of yours.

    To grant several devices in one grant, name them all: rdx host access snippet travel-laptop desk-pc. To grant every member device of your tailnet, run rdx host access snippet --all. Its src is autogroup:member, which also covers devices added later, and RDX still refuses tagged, shared and expired devices.

    To see who holds a grant, and which devices the host has refused lately, run rdx host access on the host. To grant another device later, run the snippet again for it and add the lines to your policy.

    To be told when the host lets a device in, run rdx host access --wait travel-laptop on the host. It prints the lines for that device, then waits up to 10 minutes while you save the policy, and says when the host admits the device. It only reads.

    What the grant looks like#

    Here is a complete, minimal tailnet policy file with one grant. The two hosts entries are placeholders for the host's own Tailscale addresses, which tailscale ip prints on that computer.

    json
    {
      "hosts": {
        "studio-mac": "192.0.2.10",
        "studio-mac-v6": "2001:db8::10"
      },
      "grants": [
        {
          "src": ["autogroup:member"],
          "dst": ["studio-mac", "studio-mac-v6"],
          "ip": ["tcp:49379"],
          "app": {"getrdx.io/cap/rdx": []}
        }
      ]
    }
    • hosts gives names to the host's two Tailscale addresses (IPv4 and IPv6), so the grant can name the computer instead of a number.
    • src is who the grant is for. autogroup:member is every direct member user of your tailnet.
    • dst is the computer being connected to. It names this host only, so each computer you host from needs its own lines.
    • ip opens the network path to RDX's port (TCP 49379). With it, no separate acls rule is needed.
    • app holds the permission RDX looks for, getrdx.io/cap/rdx. The empty list is intentional: RDX only checks that the capability is present.

    If your policy still uses acls to open the port, keep them and use the smaller, app-only form that rdx host access snippet <device> prints. Grants and acls can live in the same policy:

    json
    "grants": [
      {
        "src": ["autogroup:member"],
        "dst": ["studio-mac", "studio-mac-v6"],
        "app": {"getrdx.io/cap/rdx": []}
      }
    ]

    This form gives no network access by itself, so your acls must still let the viewer reach TCP 49379.

    For more on the syntax, see Tailscale's grants syntax and tailnet policy file syntax.

    Narrower and wider grants#

    Change only src to change who is granted. The rest of the grant stays as above.

    One device only. Add an alias for it under hosts (for example "travel-laptop": "192.0.2.20", that device's own Tailscale address), then name it:

    json
    "src": ["travel-laptop"]

    One Tailscale user:

    json

    Everyone in the tailnet:

    json
    "src": ["*"]

    Check that it worked#

    1. Save the policy in the Tailscale admin console under Access controls. The console validates it and previews the result before you save.
    2. On the host's computer, run rdx host access. The GRANT column shows granted for the device you just added.
    3. Join from that device with rdx join <name>.

    Common mistakes:

    • The grant is on the wrong destination. Each host computer needs its own lines.
    • A device was removed and added again, so it has a new address, and the host alias still points at the old one. Update the alias.
    • The policy has no ip permission or acls rule for TCP 49379, so the grant alone does not open the network port.
    • The device is tagged. Tagged devices are never admitted.

    When you remove access#

    Removing a grant ends that device's open session within about 10 seconds, once your Tailscale has the change.

    Join by name#

    On the viewer:

    bash
    rdx join studio-mac

    You can also use the full MagicDNS name or the Tailscale address. RDX asks the local Tailscale daemon who is connecting on each side, and only same-owner, untagged devices that hold the grant are accepted.

    List what you can reach#

    bash
    rdx list

    shows your same-owner Tailscale machines and their RDX status. The join_target column gives what to type. If you have many machines, use rdx tui and press t on the Devices tab to choose which ones are checked.

    If it does not connect#

    Tailscale can be online and still block RDX.

    SymptomWhat to check
    The host is missing from rdx list, or shows rdx_not_respondingYour tailnet policy (ACL) must allow the viewer to reach the host's RDX port (TCP 49379). A path that answers ping may still be filtered.
    Windows host unreachableIn Tailscale on that PC, "Allow incoming connections" must be on (shields up off).
    Joins over a local network start failingAccepting another device's subnet routes can send local replies into the tunnel. Turn off "Use Tailscale subnets" on that computer.
    Local-network reachability brokenA full-tunnel VPN on either computer breaks it. Turn the VPN off.
    "That host does not allow this device to connect"The device has no grant toward that host. Add the lines from rdx host access snippet <device> on the host. See A device is refused.
    Tagged or shared device refusedOnly untagged devices owned by the same user are allowed, even with a grant.

    More in Troubleshooting.