Subnet Routing
Subnet routing lets you access your local network from other Tailscale devices.
Automatic Setup
During installation, you'll be prompted to configure subnet routing. You can also run it later:
sh
tailscale-manager setup-firewallThis will:
- Create a network interface (required) — binds
tailscale0to OpenWrt's network subsystem - Create a firewall zone (optional) — adds a
tailscalezone with forwarding rules tolan
TIP
In most cases, only the network interface is needed. The firewall zone is for stricter configurations.
Manual Setup via LuCI
If you prefer to configure manually through the LuCI web interface:
- Go to Network → Interfaces → Add new interface
- Name:
tailscale, Protocol:Unmanaged, Device:tailscale0 - (Optional) Go to Network → Firewall → Add zone
- Name:
tailscale, Input/Output/Forward:accept - Add forwarding rules between
tailscaleandlan
Activating Subnet Routes
After setting up the interface:
sh
# Log in if not already
tailscale up
# Advertise your local subnet
tailscale set --advertise-routes=192.168.1.0/24Then approve the subnet route in the Tailscale Admin Console.
Exit Node
To use your OpenWrt router as an exit node:
sh
tailscale up --advertise-exit-nodeThen approve the exit node in the Admin Console.
Userspace Mode
In userspace mode, the tailscale0 interface is not created. Instead, Tailscale provides SOCKS5 and HTTP proxy listeners. The setup-firewall command is not needed.