To configure a Tailscale subnet router, advertise the LAN prefixes on the router, approve them in Machines, and allow the traffic in your tailnet policy. On an already connected Linux client that needs the remote LAN, run sudo tailscale set --accept-routes. Route injection requirements
Some peers are advertising routes but --accept-routes is false
Peers are advertising subnet routes, and the device showing the warning has route acceptance off. If the affected Linux client needs a remote LAN, run sudo tailscale set --accept-routes there. Check approval for the specific prefix in Machines. Tailscale changelog · Route injection
Leave acceptance off if you only use peers’ Tailscale IPs or only need a LAN you can already reach directly. A subnet router serving only its attached LAN can leave acceptance off. Enable it on a router that needs the other site’s routes in a site-to-site setup. On redundant routers advertising the same LAN, acceptance can send standby traffic through the primary. See the router-specific answer. Site-to-site networking · High availability
Follow the request to suppress the warning when acceptance is deliberately off in Tailscale’s issue tracker.
What tailscale up --accept-routes does
--accept-routes lets this client use approved subnet routes advertised by peers. Run sudo tailscale set --accept-routes on a connected client, or tailscale up --accept-routes when connecting and authenticating. With up, include any other nondefault flags you already use. If you omit them, the CLI suggests the complete command. With set, only the specified preference changes. up reference · Tailscale CLI
The preference survives reconnects and restarts that retain the device’s Tailscale state. Set it while connected to the intended tailnet if you switch accounts. Tailscale CLI · tailscaled state
| Client | Accepts routes by default? | Where to change it |
|---|---|---|
| Linux and BSD | Off | sudo tailscale set --accept-routes to turn it on or sudo tailscale set --accept-routes=false to turn it off. |
| Windows and macOS App Store or standalone app | On | Toggle Use Tailscale subnets in the Tailscale client menu. |
| iOS and Android | On | Look for Use Tailscale subnets in the Tailscale app. |
| tvOS | On | Toggle Use Tailscale Subnets in Subnet Routing Settings. |
A previous preference or an administrator’s device policy can override a default. Client preferences · Route injection · System policies · Tailscale changelog
When accept-routes breaks the local LAN
On Linux, Tailscale’s policy routing can send traffic for a directly attached LAN through the tunnel if an accepted route overlaps it. Check the rules and the actual destination. Tailscale LAN prioritization guide · ip rule manual · ip route manual
ip rule show
ip route get 10.0.20.20
If a local host resolves through tailscale0 and you need no remote subnets, turn off route acceptance. If you need both, Tailscale documents adding a rule ahead of its rules so the local prefix uses the main table. Check for an available priority ahead of Tailscale’s rules before adapting the example, especially on OpenWrt with mwan3. Tailscale LAN prioritization guide
# Example for a fixed, trusted local LAN
sudo ip rule add to 10.0.20.0/24 priority 2500 lookup main
ip route get 10.0.20.20
# Remove the example exception
sudo ip rule del to 10.0.20.0/24 priority 2500 lookup main
Use the exception on a fixed, trusted LAN. On a roaming laptop, it can send traffic intended for the remote site to an untrusted local network. The rule is temporary unless you configure it to apply at boot. On Windows and macOS, Tailscale documents advertising a less-specific covering prefix so the more-specific local route wins. Use that approach only if the router should serve the full covering prefix. Tailscale LAN prioritization guide
Route warnings and approval states
Check the router’s Subnets in Machines to distinguish advertising a route from approving it. Configure a subnet router · Route injection
| Warning or route state | Responsible device or setting | Action | Check |
|---|---|---|---|
Some peers are advertising routes but --accept-routes is false | Client displaying the warning | Enable acceptance here if this device needs remote subnets. | Check the client’s preference and destination route. |
| Advertised but not approved | Admin approval | In Machines, open the router’s route settings, select the intended prefixes and save. | Confirm approval, then look for the route on the client. |
| Approved but not advertised anymore | Router’s advertised CIDR list | Restore a still-needed prefix using the complete list below, or remove approval for a retired route. | Confirm advertisement and approval, then verify from the client. |
| Advertised and approved, but LAN access fails | Forwarding, access policy, firewall or return path | Follow the verification sequence. | Try the intended LAN service from a remote client. |
How to set up a Tailscale subnet router
The worked example uses a Linux router with LAN IP 10.0.20.5, access to services on 10.0.20.0/24, and a path through its LAN gateway to storage on 10.0.40.0/24. These addresses describe an example, not a discovered network.
-
Join the router to the tailnet. Start with the Tailscale setup guide if needed. Confirm the router can reach the intended LAN destinations before advertising them.
-
Enable forwarding on the router. Keep the host firewall configured to deny unintended forwarding. The configuration guide gives this Linux example when
/etc/sysctl.dexists:echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf sudo sysctl -p /etc/sysctl.d/99-tailscale.confIf those settings already exist, edit them in place. If the system lacks
/etc/sysctl.d, use the documented/etc/sysctl.confrecipe. Check the live forwarding values before advertising. The setting for each address family you route should return1.sysctlmanualsysctl net.ipv4.ip_forward net.ipv6.conf.all.forwardingFor a Linux node affected by Tailscale’s documented firewalld issue, the workaround enables IPv4 masquerading in the default zone. Confirm the zone and NAT policy before applying it. Before reloading, preserve any runtime-only rules you still need. Reloading applies the permanent configuration. Subnet routers · Firewalld manual
firewall-cmd --permanent --add-masquerade firewall-cmd --reload -
Advertise the complete intended CIDR list on the router. Substitute the networks the router can actually reach. Running the command again sets the complete list. Configure a subnet router
sudo tailscale set --advertise-routes=10.0.20.0/24,10.0.40.0/24 -
Approve the prefixes. Open Machines in the admin console, find the router’s Subnets badge (or filter with
property:subnet), select its … menu → Edit route settings, check the intended IP ranges and Save. The setup guide documents these clicks. The device details interface also exposes approval in its Subnets section. -
Permit the intended traffic. Open Access controls and add or adapt the grants below. Approval and permission are separate.
-
Enable acceptance on each Linux client that needs these LANs, using the command at the start of this page, then verify.
Advertise or accept routes in Docker and Kubernetes
Docker. Set TS_ROUTES on the container serving the LAN. Set TS_EXTRA_ARGS on a container that needs to accept routes. A container that serves its own subnet needs acceptance only if it also needs another router’s subnet. Mount the state directory as a persistent volume to retain the container’s identity across restarts. Docker configuration parameters
environment:
TS_ROUTES: "10.0.20.0/24,10.0.40.0/24"
TS_EXTRA_ARGS: "--accept-routes"
TS_STATE_DIR: "/var/lib/tailscale"
Kubernetes. For a pod running the Tailscale image, place those route environment variables in its container specification. For a subnet-router pod, set TS_ROUTES to the actual Service and Pod CIDRs you want to expose. Approve the advertised routes in Machines and enable acceptance on the clients that need to reach them. Tailscale on Kubernetes · Container environment variables
With the Kubernetes Operator, advertise the desired cluster CIDRs through spec.subnetRouter.advertiseRoutes on a Connector. For an operator-managed egress proxy that needs an IP behind another subnet router, set spec.tailscale.acceptRoutes: true on a ProxyClass and reference the class from the egress ProxyGroup using spec.proxyClass. For the Service that uses this proxy group, follow the linked egress guide. Connector configuration · Egress to an IP behind a subnet router
apiVersion: tailscale.com/v1alpha1
kind: Connector
metadata:
name: cluster-subnet-router
spec:
subnetRouter:
advertiseRoutes:
- "10.40.0.0/14"
---
apiVersion: tailscale.com/v1alpha1
kind: ProxyClass
metadata:
name: accept-routes
spec:
tailscale:
acceptRoutes: true
---
apiVersion: tailscale.com/v1alpha1
kind: ProxyGroup
metadata:
name: egress-proxies
spec:
type: egress
replicas: 2
proxyClass: accept-routes
Approve routes from the policy file
To automate approval for an authorized router identity, merge an autoApprovers rule into your existing tailnet policy. This example lets admins assign the router tag, auto-approves its listed prefixes, and permits administrator-owned clients to reach SMB and NFSv4 TCP ports on the storage subnet. Tailnet policy syntax · SMB port · NFSv4 port
{
"tagOwners": {
"tag:subnet-router": ["autogroup:admin"]
},
"autoApprovers": {
"routes": {
"10.0.20.0/24": ["tag:subnet-router"],
"10.0.40.0/24": ["tag:subnet-router"]
}
},
"grants": [
{
"src": ["autogroup:admin"],
"dst": ["10.0.40.0/24"],
"ip": ["tcp:445", "tcp:2049"]
}
]
}
Replace the source selector with your intended users or group if they are not admins. Existing broader rules still apply, so review them instead of assuming this added grant restricts prior access. Tagging changes a device’s identity. Reserve the router tag for the intended infrastructure.
For a fresh router, an authorized admin can apply the router tag and full route list with:
sudo tailscale up --advertise-tags=tag:subnet-router --advertise-routes=10.0.20.0/24,10.0.40.0/24
On an existing router, include its other nondefault flags with up. Follow the complete command suggested by the CLI if it reports missing settings.
The autoApprovers reference says approval occurs when the advertisement is received. Adding the rule later does not retroactively approve an existing unapproved advertisement. Approve that prefix manually, or intentionally withdraw and re-advertise it during maintenance. A rebuilt node must receive an authorized identity again. Tagged devices have key expiry disabled by default, as noted in the subnet docs.
Route approval enables route distribution; grants permit particular traffic. See Tailscale ACL examples explained for the broader policy catalog.
Which subnets to advertise
Choose only prefixes the router can reach and that clients need. A broad private range can capture traffic intended for other networks. The example gateway permits these paths:
| VLAN | Role | CIDR | Advertise? | Example LAN firewall policy |
|---|---|---|---|---|
| 20 | services | 10.0.20.0/24 | Yes | Permit only required service traffic |
| 40 | storage | 10.0.40.0/24 | Yes | Router to storage on TCP 445/2049 |
| 50 | IoT | 10.0.50.0/24 | No | No access through these advertisements |
Advertising VLAN 40 from a host in VLAN 20 requires the gateway and firewalls to allow that path. Enforce isolation in tailnet and LAN policies even for a subnet you omit from the advertisement. Include IPv6 prefixes in the same comma-separated list where needed. Apple TV can advertise IPv4 subnets only. Subnet routers
--snat-subnet-routes=false and stateful filtering
Default SNAT makes LAN targets see the subnet router as the source. Disabling masquerading preserves the originating address and requires explicit return routing. The switch works on Linux routers only.
Plan the return path before disabling SNAT. For tailnet clients, the documented return route is 100.64.0.0/10 via the subnet router’s LAN address. Add it if the existing routing sends replies elsewhere. ip route manual
# On the Linux subnet router
sudo tailscale set --snat-subnet-routes=false
# On a Linux LAN host directly attached to 10.0.20.0/24,
# if its existing routing does not return tailnet traffic via this router
sudo ip route add 100.64.0.0/10 via 10.0.20.5
For the NAS on VLAN 40, put that return route on the gateway that can reach 10.0.20.5 directly. Do not use an off-link next hop on the NAS. Persist routes through the host or gateway configuration. An ip route add command alone is temporary. Restore default SNAT on the router with sudo tailscale set --snat-subnet-routes=true if source preservation is unnecessary. The subnet docs caution that disabling SNAT on a device also serving as an exit node can cause upstream drops.
--stateful-filtering is separate. The up reference describes it as filtering inbound forwarded packets unless they belong to a tracked outbound connection, and lists it as disabled by default. Diagnose the affected traffic direction and firewall rules before changing it. Use the client and approval checks above for route warnings.
Tailscale site-to-site with two subnet routers
For two LANs whose devices do not run Tailscale, the site-to-site guide requires Linux routers and distinct LAN ranges. Enable forwarding on both, then use these example settings:
# Site A: router LAN IP 10.0.20.5
sudo tailscale set --advertise-routes=10.0.20.0/24 --snat-subnet-routes=false --accept-routes
# Site B: router LAN IP 172.16.100.2
sudo tailscale set --advertise-routes=172.16.100.0/24 --snat-subnet-routes=false --accept-routes
Approve both prefixes, add the MSS clamp below, and merge grants for the required traffic. For example, to allow SMB connections initiated from either LAN:
{
"grants": [
{ "src": ["10.0.20.0/24"], "dst": ["172.16.100.0/24"], "ip": ["tcp:445"] },
{ "src": ["172.16.100.0/24"], "dst": ["10.0.20.0/24"], "ip": ["tcp:445"] }
]
}
At site A, route 172.16.100.0/24 and 100.64.0.0/10 via 10.0.20.5; at site B, route 10.0.20.0/24 and 100.64.0.0/10 via 172.16.100.2. Put these on hosts or their LAN gateways as appropriate. With SNAT off, the return path must cover the remote LAN source range as well as any tailnet client addresses.
OPNsense has a community-supported Tailscale plugin. Use its platform-specific setup guide. Tailscale for OPNsense
Overlapping subnets and a second router
Two separate sites with identical IPv4 ranges need a way to identify the destination site. 4via6 maps an overlapping IPv4 range to a site-specific IPv6 prefix. Its documented example is:
tailscale debug via 7 10.1.1.0/24
# Documented output: fd7a:115c:a1e0:b1a:0:7:a01:100/120
tailscale set --advertise-routes=fd7a:115c:a1e0:b1a:0:7:a01:100/120
The 4via6 docs recommend upgrading routers to Tailscale v1.102.3 or later for security. Include any other intended prefixes when adapting the advertisement. Approve the IPv6 route and target it in access policy. With MagicDNS enabled, the documented host-name example is 10-1-1-16-via-7.
For redundancy within one network, configure multiple routers advertising identical prefixes, then approve each. By default, active-passive failover selects eligible routers in oldest-first order. Overlapping prefixes use longest-prefix matching. Clients continue selecting a more-specific prefix when all its routers go offline. Keep acceptance off on HA routers unless the routing design requires it. Route selection
MTU, MSS clamping, throughput
The TCP troubleshooting guide documents a Tailscale MTU of 1280 bytes and notes that larger packets can be dropped. A successful handshake followed by stalled data is a reason to investigate MTU and filtering. The site-to-site guide shows this MSS clamp on each Linux router:
sudo iptables -t mangle -A FORWARD -o tailscale0 -p tcp -m tcp \
--tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
Integrate firewall changes with the host’s firewall manager and persistence mechanism. For eligible Linux systems, performance best practices describe UDP GRO forwarding with Tailscale 1.54 or later and Linux kernel 6.2 or later. Apply the guide’s interface-specific settings after identifying the real egress interfaces. Continue with Tailscale throughput fixes for direct-versus-relayed paths and speed tuning.
How to check a subnet router is working
Start on a Linux client outside the destination LAN. Check the router’s advertisement, the admin approval, and the client’s preference before testing the application.
| Where | Command or screen | What to look for |
|---|---|---|
| Subnet router | tailscale get advertise-routes | The configured prefix list includes your destination. |
| Admin console | Machines → router → Subnets | The desired prefix is advertised and approved. |
| Linux client | tailscale get accept-routes | The preference is enabled on this client. |
| Linux client | ip route show table 52 and ip route get 10.0.40.10 | A route covers the destination and the lookup selects tailscale0 on a typical kernel-mode client. |
tailscale get is available from Tailscale v1.102.1. For older clients, run tailscale debug prefs and look for RouteAll: true on the client. On the router, the route injection guide also documents tailscale status --json, or you can check its advertisements in Machines. Approval and live forwarding still need separate checks. Tailscale CLI · Tailscale changelog · Route injection · IP routes installed by Tailscale · ip route manual
On the router, run tailscale ip -4 to get its Tailscale IPv4 address. On the client, substitute that address in the first command, then try the example NAS’s SMB port with OpenBSD netcat. Replace the LAN IP and port with your service’s values. Tailscale CLI · nc manual
# On the client. Substitute the router's actual Tailscale IP.
tailscale ping 100.101.102.103
nc -vz 10.0.40.10 445
| Observation | What it establishes / next check |
|---|---|
| Tailscale ping reaches the router | The overlay path to the router works. Continue with the LAN service check. |
| TCP connection to port 445 succeeds | The SMB port is reachable. Open the share to verify application access. |
| Router responds, but LAN service times out | Check the router’s IP forwarding values and try the service from the router itself. Then check the destination grant, firewalls and any no-SNAT return route. |
| Route is installed but the router’s device key has expired | Tailscale leaves the route installed and it becomes unreachable through that router. Reauthenticate the router. For infrastructure, options include managing key expiry or configuring high availability. |
| Service works by IP but not by name | Check DNS for the LAN. The subnet docs show how to use split DNS with an internal resolver. |
Route injection troubleshooting · Subnet router DNS and expired routes · Key expiry
Subnet router vs exit node: which Tailscale gateway to use
| Option | Destination | Client requirement |
|---|---|---|
| Tailscale installed on the target | Target’s Tailscale IP | Ordinary tailnet connectivity and permission |
| Subnet router | Advertised and approved private LAN prefixes | Route acceptance and permission |
| Site-to-site routers | Remote LAN prefixes in both directions | Router acceptance, forwarding, policy and LAN return routes |
| Exit node | General internet traffic | Select the exit node |
Use Tailscale exit node setup for internet egress. Subnet acceptance and exit-node selection are separate settings.
FAQ
is a tailscale subnet router free?
Yes. Subnet routers are available on all plans, including the $0 Personal plan (checked on 2026-11-22). Devices behind a subnet router do not count toward the plan’s device limit. Subnet routers · Current plan terms
can a windows pc or mac be a tailscale subnet router?
Yes. The platform setup guide includes Windows and macOS. Follow its platform-specific forwarding and CLI setup, then advertise and approve the intended prefixes. The no-SNAT switch and site-to-site procedure described here require Linux routers.
how do i remove a subnet route in tailscale?
On the router, replace the list with only prefixes to keep, such as sudo tailscale set --advertise-routes=10.0.20.0/24. To withdraw all prefixes, use sudo tailscale set --advertise-routes=. Remove stale approvals in the console and review matching auto-approval and access rules if the subnet is being retired. See CLI advertisement syntax.
does the subnet router itself need --accept-routes?
Only when it needs another router’s subnets, such as the site-to-site example. For HA routers advertising the same LAN, Tailscale’s HA guidance warns that acceptance can send a standby’s local traffic through the primary. Leave it off unless that behavior is intended.
Evidence and limits (2026-11-22). This guide uses the linked Tailscale documentation and release notes. Version numbers identify features or prerequisites described there. The commands and configurations were not run in a lab.