From 384d72468321d283b90675e4bcf6c8f8d88808a3 Mon Sep 17 00:00:00 2001 From: Adyanth H <33192449+adyanth@users.noreply.github.com> Date: Mon, 18 Jan 2021 17:38:20 +0530 Subject: [PATCH] Update README --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..440ddf4 --- /dev/null +++ b/README.md @@ -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"`.