Skip to content
Projects

About

A Tailscale client for KOReader, enabling seamless cross-network service access on e-readers

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+8
in 15 days
+14
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Tailscale Plugin for KOReader

CI Latest release

A tailscale client for KOReader, allowing you to connect your e-reader to your tailnet.

I was extremely tired of looking up short-lived IP addresses and reconfiguring sync plugins. This plugin addresses the disposability problem head-on, virtualizing a persistent network connection by allowing KOReader traffic to go through Tailscale (or Headscale).

This connection enables services like Syncthing and SSH to work seamlessly across your tailnet devices as you change networks.

Most testing has been on two Kindles I own, but we are able to implement platform fixes (mostly file path variety or service swaps). See the reference for device-specific paths and behavior.

Please create an issue if you have any problems. Feedback and contributions are welcome!

Setup

  1. Tailscale account (or a self-hosted Headscale server).
  2. Download the plugin from the releases page and copy tailscale.koplugin into KOReader's plugins folder.
  3. Restart KOReader and tap Network → Tailscale VPN → Plugin config → Install/Update Tailscale.
  4. Sign in by scanning the QR code with your phone, or use an auth key file. See the Sign in section for details.

Sign in

  • Scan QR code: show a sign-in QR for pairing a new Tailscale device, it's tailscale's own check-in flow.
  • Auth key: place a key in the plugin's bin/auth.key file, then tap Use an auth key → Check again.

The file should contain only the key: tskey-... or hskey-auth-....

To use a self-hosted Headscale server instead of the official control plane, go to Network setup → Control plane and enter your server URL. Headscale's getting started covers creating a user and a pre-auth key.

Networking

Capability Kernel TUN Userspace networking
Inbound to services on the device (Syncthing :22000, KOReader SSH :2222) Yes Yes — TCP is accepted and re-dialed to localhost
Outbound from apps (KOReader, Syncthing) Transparent Only via tailscaled's proxy, 127.0.0.1:1056 (in KOReader: Settings → Network → HTTP proxy, long-press)
Tailscale SSH (:22) Yes Yes
Taildrop (send/receive via the plugin menu) Yes Yes
HTTP proxy 127.0.0.1:1056 Optional Required for outbound traffic

On your other devices

Remember your ports! An example address in my syncthing client on iOS:

tcp://<kindle.tailscalestuffhere>:22000

Manual installation

If the automatic installation fails, install the binaries by hand.

  1. Download the binaries for your architecture (arm for ARMv7, arm64 for ARM64) from pkgs.tailscale.com/stable.
wget https://pkgs.tailscale.com/stable/tailscale_<version>_arm.tgz
wget https://pkgs.tailscale.com/stable/tailscale_<version>_arm.tgz.sha256
echo "$(cat tailscale_<version>_arm.tgz.sha256)  tailscale_<version>_arm.tgz" | sha256sum -c
  1. Transfer the archive to the device's plugin bin directory. See the platform paths for common locations.
scp -P 2222 tailscale_<version>_arm.tgz root@<device-ip>:/path/to/tailscale.koplugin/bin/

Then, on the device:

cd /path/to/tailscale.koplugin/bin
tar xzf tailscale_<version>_arm.tgz
mv tailscale_*/tailscale tailscale_*/tailscaled ./
rm -rf tailscale_* tailscale_<version>_arm.tgz
chmod +x tailscale tailscaled
  1. Start Tailscale from the plugin menu and sign in.

Credits

Inspired by mitanshu7/tailscale_kual, our .sh access to Tailscale is essentially the same.

MIT License.

Explore related projects

Loading…