Prerequisites
- Admin access to the tailnet, to edit its policy file, generate an auth key, and approve routes.
- A function project and the
telnyx-edgeCLI, as in the Edge Compute Quick Start. - A region that offers Tailscale Subnet Routers.
telnyx-edge network regions --service tailscale_subnet_routerlists them, such asashburn-va.
Create a Network and a WireGuard Interface
Create a Network and a WireGuard Interface in the router’s region, as in the WireGuard Interfaces Quick Start.telnyx-edge network interface get shows its Address, 172.27.0.1/24 here, so its subnet is 172.27.0.0/24.
Prepare the Tailnet
In the tailnet policy file, define the tag the router carries. Let the tag advertise the interface’s subnet withautoApprovers, and let members reach it with an access rule. The auto-approver approves the route as soon as the router advertises it. Without one, approve the route in the admin console later.
tag:telnyx, and not ephemeral. A single-use key enrolls one router, and a reusable key enrolls several.

Create the Router
Create the router with the interface’s subnet as its route, and wait until it enrolls in the tailnet, which takes several minutes.--auth-key-file reads the auth key from a file, or from standard input with -:
telnyx-edge network router get then describes the router’s machine:
ts plus the first eight characters of the router’s ID. Traffic from devices behind the router enters the Network from its Network Address.
A failed status means enrollment did not complete, for example because the tailnet rejected the key. Retry with a new key. The router keeps its Network Address.
Approve the Route
With the auto-approver above, the route is active as soon as the router advertises it. Otherwise open the machine’s menu in the admin console and choose Edit route settings:
172.27.0.0/24 and save, as in Tailscale’s subnet routers guide:

provisioned reports enrollment, not approval. The tailnet decides which routes are approved and who reaches them.
Bind the Function
Add a network binding with the interface’sid to the function’s func.toml:
func-<function-id>.
Find the Address
telnyx-edge network peer list acme-prod-ashburn-va lists the interface’s peers. telnyx-edge network peer config with the function peer’s ID prints its configuration, whose Address is 172.27.0.4/32 here.
Each deploy gives the function a new address. Look it up again after every deploy.
Call the Function From Behind the Router
A tailnet device is behind the router once it accepts the route. Devices on macOS, Windows, iOS, and Android accept it automatically. Linux devices need:PORT, 8080:
Network Address, 172.27.254.1.
Call a Private Function by Name
A Private Ingress function has no address of its own to look up. Add a DNS resolver to the Network, and tailnet devices request the function by its private name through this router: see Tailscale.Change the Routes
telnyx-edge network router set-routes replaces the routes the router advertises:
provisioning for about four minutes. It keeps its machine, with the same Machine Name and Tailscale IPs. A new route needs approval unless an auto-approver covers it. A change while the router is provisioning or deleting is refused.
Delete the Router
deleting, and its record disappears within a few minutes. The router logs out of the tailnet. Its machine stays in the admin console, expired, until an admin chooses Remove in the machine’s menu. Delete the tag, the auto-approver, and the ACL entry when nothing else uses them.
Delete a Network’s routers before the Network, as for its other interfaces.