Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
adyanth committed Jan 18, 2021
1 parent a55d29a commit 384d724
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Tailscale on OpenWRT

1. Extract the contents of root to your filesystem root using:
```
tar x -zvf tailscale_enabler.tgz -C /
```

2. Install the prerequisites for wget and tailscale using:
```
opkg update
opkg install libustream-openssl ca-bundle kmod-tun
```

3. Run tailscale for the first time:
```
tailscale_enabler
/etc/init.d/tailscale start
tailscale up --accept-dns=false --advertise-routes=10.0.0.0/24
```

The tailscale_enabler will download the tailscale binaries to /tmp and tailscale will start the tailscale daemon.
The last command uses the tailscale CLI to configure the login and add some settings to prevent dns changes and advertise routes. Use the URL printed to login to tailscale.

4. Enable tailscale at boot:
```
/etc/init.d/tailscale_enabler enable
/etc/init.d/tailscale enable
```

Verify by looking for two entries here:
```
ls /etc/rc.d/S*tailscale*
```

5. Reboot the router and verify that it shows up online on the [Tailscale Admin portal](https://login.tailscale.com/admin/machines).

6. To update the version of tailscale, grab the latest version [here](https://pkgs.tailscale.com/stable/#static) of the form `1.2.10_mips` and replace the same in /usr/bin/tailscale_enabler: `version="1.2.10_mips"`.

0 comments on commit 384d724

Please sign in to comment.