TroutTrout

Configure Tailscale VPN on Access Gate

Medium

Step-by-step guide to configuring the built-in Tailscale VPN client on Access Gate. Set up the tailnet, OAuth API access, IP ranges, route auto-approval, and asset sync between Access Gate and Tailscale.

12 min read · Last updated 2026-10-22

Access Gate ships with a built-in Tailscale client. Tailscale is only one of several ways to reach an Access Gate. Access Gate is connectivity-agnostic: it sits behind whatever already reaches the site, a routed network, a private WAN or MPLS backbone, or an encrypted VPN such as IPSec, OpenVPN, or WireGuard, always enforcing access locally per enclave. See VPN and WAN Connectivity Options for the full picture. The built-in Tailscale client is the lowest-friction of these, since Access Gate joins the tailnet itself, and it is the option documented step by step below, so that remote users, remote sites, and Access Gate itself share a secure mesh overlay without firewall changes or recabling.

For the access model itself (who may reach which asset, and how the session is brokered and recorded once the mesh path exists), see secure vendor remote access to OT on top of your VPN.

This guide covers the full Tailscale-on-Access-Gate setup: creating the tailnet, configuring the IP pool, granting OAuth API access so Access Gate can read and update tailnet state, connecting Access Gate, syncing tailnet devices back to Access Gate, and granting enclave access over the overlay.

Set up your Tailscale tailnet

If you do not already have a Tailscale account, go to tailscale.com to create one. The friendly built-in menu will guide you through the steps to create your account, you might want to stop as soon as the screen shows to connect devices.

Set up Tailnet IP address range(s)

Every machine connected to Tailnet is assigned an IP address. To control the address pool from which these addresses are assigned add to the Access controls configuration file

"nodeAttrs": [
  { "target": ["*"], "ipPool": ["100.100.0.0/16"] }
]

and click Save to save and apply. Optionally, specify different pools for different user groups

"nodeAttrs": [
  { "target": ["autogroup:member"], "ipPool": ["100.100.1.0/24"] },
  { "target": ["autogroup:admin"], "ipPool": ["100.100.2.0/24"] }
]

To change IP address of already connected machine go to Machines section -> machine options (three dots on the right of the machine info row) -> Edit machine IPv4, enter an available IP from the desired range and press Update IP button.

From the UI, you can achieve this in Access Controls > Node Attributes.

IP Range configuration on Tailscale
IP Range configuration on Tailscale

Set up auto-approval for newly connected machines

By default, each newly added machine is auto-approved to join the Tailnet. It is optional (and safer) to alter this policy and require manual approval for each new machine. To enable that go to Settings -> Device management and set Device Approval to On.

After that each new machine added to Tailnet will appear in the Machines section with "Needs approval" label, and it needs to be manually approved by clicking the machine options (three dots on the right) and selecting Approve.

Set up auto-approval for advertised (shared) routes

When a newly connected machine advertises (shares) routes to be made accessible via Tailnet, these subnets need to be approved in Machines section -> machine options (three dots on the right) -> Edit route settings by enabling the checkbox next to particular subnets.

Access Gate zones: the Overlay IP+Prefix column is what Access Gate advertises to the tailnet
Access Gate zones: the Overlay IP+Prefix column is what Access Gate advertises to the tailnet
The same overlay ranges, approved on the Access Gate machine in the Tailscale console
The same overlay ranges, approved on the Access Gate machine in the Tailscale console

For other subnet routers in your tailnet, approval can be automated per subnet with autoApprovers in the Access controls file. Name the exact subnets and a tag or a small group, rather than a whole range for every member:

"autoApprovers": {
  "routes": {
    "192.168.10.0/24": ["tag:site-router"]
  }
}

Set up machine key expiry

Each machine connected to Tailnet is assigned with a key that is by default valid for 180 days. After that the key expires and the machine needs to be re-authenticated.

The key expiry can be disabled per machine for trusted machines (including AccessGate) in Machines section by clicking machine options (three dots on the right) -> Disable key expiry.

Set up OAuth API access to Tailnet configuration

To allow Access Gate to read tailnet state (devices, users, DNS, and routes) and keep assets and access in sync, an API access has to be configured and the obtained ID and Secret have to be entered into Access Gate configuration.

To enable OAuth API access to the tailnet, in Tailscale:

  • In Tailscale, go to Settings -> Trust Credentials -> OAuth clients
  • Enter Description (e.g. AccessGate API client)
  • Grant the following scopes:
    • DNS: Read and Write
    • Policy File: Read
    • Users: Read
    • Services: Read
    • Devices (Core): Read
    • Posture Attributes: Read
    • Routes: Read and Write
  • Click Generate credential
Tailscale OAuth client permissions
Tailscale OAuth client permissions

Copy and store safely the displayed OAuth client credentials (ID and Secret), and enter them to the AccessGate via AccessGate Web administration -> Settings -> Networking -> VPN Access -> API Credentials.

As of v26.6, you can update or replace these API credentials at any time from the same screen. This is useful if you need to rotate the OAuth client or reconfigure the integration without rebuilding it.

Connect Access Gate to the tailnet

In Access Gate, go to Settings > Networking > VPN Access and click Enable. The status shows Connecting, then Connected with the gate's tailnet address. Reload the page if it stays on Connecting: the card does not refresh by itself.

VPN Access connected to the tailnet
VPN Access connected to the tailnet

As soon as it connects, Access Gate advertises and approves its zone overlays (see above) and publishes split DNS for its zone domains (see DNS).

Back on the Tailscale side, update your Access controls file to grant access to members (or other source of your choice) to the overlay ranges Access Gate advertises. Grants go inside the "grants": [ ... ] list. Route approval alone is not enough: a client only receives the routes a grant lets it reach.

For example, with the zones shown above:

// access the Access Gate zones (overlay ranges); per-asset access is still enforced by the enclaves
{
  "src": ["autogroup:member"],
  "dst": [
    "10.0.15.0/24", "10.0.17.0/24", "10.0.18.0/26",
    "10.21.2.0/24", "10.21.3.0/24", "10.21.4.0/24", "10.21.5.0/24",
    "10.21.10.0/24", "10.21.20.0/24", "10.21.30.0/24",
  ],
  "ip":  ["*"],
},

List only the zones remote users need. Leave out a zone without an overlay (in the example, the 10.0.16.0/29 link network) unless you want it reachable from the tailnet.

Sync tailnet devices to Access Gate

Access Gate syncs the tailnet through its Tailscale directory (Settings > Directories, Sync now to run it at once):

  • every tailnet device becomes an asset in the Tailscale directory, named after the machine and addressed by its tailnet IP. Tailnet users are not imported: the principal for a remote user is their device;
  • the tailnet address pool becomes a zone of type VPN (for example vpn_100.127.0.0/24);
  • every subnet that another machine of the tailnet advertises becomes a zone of type Public (ts_<subnet>). Review these after the first sync: they describe other sites, not this one.

Access local Assets

Head to Enclaves and add the tailnet device as a principal (filter on the Tailscale directory in Add new principals), then the asset services it may reach, and set the cells to Allowed. Anything not allowed in an enclave is refused by Access Gate.

An enclave allowing a tailnet device to reach two assets
An enclave allowing a tailnet device to reach two assets

To connect, use the overlay IP or the name shown in the Assets tab (for example pallet-hmi.bluelab.secure, which resolves to the asset's overlay address over the tailnet).

Resolve names across the tailnet (DNS)

As of v26.6, DNS resolves in both directions: a machine on the tailnet can resolve assets behind Access Gate, and local assets can resolve tailnet hosts.

You do not need to configure this by hand. When it connects, Access Gate adds a split DNS nameserver in Tailscale (DNS > Nameservers) for each of its zone domains, pointing at its own tailnet address, so only those domains go to Access Gate and the rest of your DNS is unaffected. This is what the DNS: Read and Write scope is for.

Routing: reaching local subnets

Tailscale clients reach assets on a local network through the advertised routes described above (see Set up auto-approval for advertised (shared) routes). Access Gate advertises its zone overlays to the tailnet and approves them itself; once a grant gives a client access to them, it reaches local assets by overlay IP or hostname. Which users can reach which assets is still governed per enclave by identity and ACL. That access model is covered in Remote Zero Trust Access, which rides on this overlay. For most deployments this route-based approach is preferred over configuring Access Gate as a Tailscale exit node, which would send all client traffic through it.

Reverse-path drop

Reaching an OT device through the Access Gate: reverse-path drop

Symptom. An asset is allowed in an enclave, yet it is unreachable over Tailscale: nc or curl to its overlay address time out. Assets not allowed in an enclave are refused at once (connection refused), which tells you Access Gate accepted and forwarded the allowed traffic: the reply is what goes missing. Taking the example of a FortiGate firewall, the flow trace shows the drop:

received a packet(proto=1, 100.127.0.34->172.31.144.50) from Trout Connect
func=ip_route_input_slow  msg="reverse path check fail, drop"
func=ip_session_handle_no_dst

Root cause. Access Gate translates the destination (the asset's overlay address to its real address) but keeps the client's Tailscale source address (inside 100.64.0.0/10), so enclave rules and logs still see the real remote device. The router or firewall between Access Gate and the asset has no route back to 100.64.0.0/10: its only match is the default route, out of another interface. Its strict reverse-path-forwarding (anti-spoof) check then drops the packet before it reaches the asset. The asset itself is healthy: nothing ever gets to it.

This sits at the end of the access chain, so rule out the earlier layers first. All four must be green:

  1. Tailscale ACL grant. A grant must list the zone overlay as dst. Route approval is separate from route access (grants): approval alone does not distribute the route to clients.
  2. Route in the client netmap. Run tailscale status --json; the Access Gate peer's AllowedIPs must include the overlay.
  3. Tunnel to the gate. tailscale ping <Access Gate tailnet IP> returns a pong (through a DERP relay is fine).
  4. Router return path. The failure covered here. On a FortiGate, get router info routing-table details <client tailnet IP> shows it: before the fix it returns only the default route 0.0.0.0/0.

Fix (preserves identity). Give the router a route back to the tailnet through Access Gate, so per-identity rules keep working. For example on a FortiGate, where Trout Connect is the interface facing Access Gate:

config router static
  edit 0
    set dst 100.64.0.0 255.192.0.0
    set gateway <Access Gate address on Trout Connect>
    set device "Trout Connect"
    set comment "Tailscale clients via Access Gate"
  next
end

The same lookup then points at Access Gate:

FortiGate: the tailnet range now routes back through Access Gate
FortiGate: the tailnet range now routes back through Access Gate

Then make sure a firewall policy from Trout Connect to the asset's interface accepts source 100.64.0.0/10. A policy with source all already does, in which case the route alone is the fix. With the route present, strict RPF passes, so there is no need to disable strict-src-check. If your tailnet uses a narrower pool (see IP range), you can route just that pool.

Not this case: "unreachable" right away. If nc fails at once with Network is unreachable, or ping to the overlay address returns Destination Host Unreachable, the router in front of the asset found nothing at that address: the asset is off or not on that subnet. Check it directly from the local network before changing any route.

Recap

We connected Access Gate to a Tailscale tailnet: created the tailnet and IP pool, granted OAuth API access, enabled the VPN so Access Gate advertises and approves its zone overlays and publishes split DNS, granted members access to those overlays, synced tailnet devices back to Access Gate, and allowed them per enclave. Reach for this to give remote users and remote sites a secure mesh overlay to local assets without firewall changes, recabling, or a Tailscale exit node.