Skip to content

Post-Installation Configuration

After installing Tailscale, you need to connect your device to your Tailscale network.

Basic Setup

Simple usage:

sh
# Log in to the Tailscale network
tailscale up

Example usage:

sh
# Log in to the Tailscale network with custom hostname, no Tailscale DNS, advertise subnet routes, act as exit node
tailscale up \
  --accept-dns=false \
  --advertise-routes=10.0.0.0/24 \
  --advertise-exit-node

More configuration options: See the OpenWrt official docs or Tailscale official docs

OpenWrt 22.03 Users

Add --netfilter-mode=off to your tailscale up command. For OpenWrt 23+, do not include this flag.

Common Configuration Options

FlagDescription
--hostname=NAMESet a custom hostname
--accept-dns=falseDon't use Tailscale DNS
--advertise-routes=x.x.x.x/xxAdvertise subnet routes
--advertise-exit-nodeAct as exit node
--accept-routesAccept routes advertised by other devices
--netfilter-mode=offDisable netfilter (required for OpenWrt 22.03)

Enable Auto-Start

sh
/etc/init.d/tailscale enable
/etc/init.d/tailscale start

Check Status

sh
/etc/init.d/tailscale status
tailscale status
tailscale ip

Update Tailscale

sh
# APK
apk update && apk upgrade tailscale

# OPKG
opkg update && opkg upgrade tailscale

Uninstall

sh
/etc/init.d/tailscale stop
/etc/init.d/tailscale disable
# For APK package manager
apk del tailscale
# For OPKG package manager
opkg remove tailscale
rm -rf /etc/tailscale /var/lib/tailscale

Next Steps

Built with ❤️ and shared with the community.