pschmitt / openwrt-tailscale-enabler

Brings Tailscale to low powered OpenWRT devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tailscale on OpenWRT

  1. Install the prerequisites for wget and tailscale:
opkg update
opkg install libustream-openssl ca-bundle kmod-tun
  1. Install the service and download the latest Tailscale binaries. set install_path if you want to have a persistant install, otehrwise defaults to /tmp.
export install_path="/mnt/sda1/tailscale"
wget -O- 'https://raw.githubusercontent.com/lanrat/openwrt-tailscale-enabler/main/bin/tailscale-install' | sh
  1. Run tailscale for the first time:
/etc/init.d/tailscale start
tailscale up --accept-dns=false--advertise-routes=10.0.0.0/24 --advertise-exit-node
  1. Enable tailscale at boot:
/etc/init.d/tailscale enable

Verify by looking for an entry here:

ls /etc/rc.d/S*tailscale*
  1. Reboot the router and verify that it shows up online on the Tailscale Admin portal.

  2. To update the version of tailscale, run tailscale-update or run step 2 again.

Note: You need to have atleast 11+16 = ~27 MB of free space in $install_path to be able to use this.

About

Brings Tailscale to low powered OpenWRT devices


Languages

Language:Shell 100.0%