Networking Mode
The networking mode determines how Tailscale creates its network interface.
Modes
| Mode | Description |
|---|---|
auto | Try kernel TUN first, fall back to userspace (default) |
tun | Force kernel TUN mode (fails if module unavailable) |
userspace | Force userspace networking |
Checking Current Mode
sh
tailscale-manager net-mode statusOutput:
Networking mode:
Configured: auto
Active: tunSwitching Modes
Via CLI
sh
tailscale-manager net-mode auto # Auto-detect
tailscale-manager net-mode tun # Force kernel TUN
tailscale-manager net-mode userspace # Force userspaceVia UCI
sh
uci set tailscale.settings.net_mode='userspace'
uci commit tailscale
/etc/init.d/tailscale restartHow Auto-Detection Works
- Check if
/sys/module/tunexists (module already loaded) - Attempt
modprobe tunorinsmod tun - Check for built-in TUN support via
/proc/config.gz - Ensure
/dev/net/tundevice node exists (creates it if needed) - Fall back to userspace if all above fail
TIP
Most modern OpenWrt builds include kmod-tun. If you see "userspace" active unexpectedly, install it:
sh
opkg update && opkg install kmod-tunSee Userspace Mode for details on userspace networking.