Skip to content

Instantly share code, notes, and snippets.

@alexvorobiev
Created November 16, 2022 05:55
Show Gist options
  • Save alexvorobiev/2e0c5cf6ba2b6176480a0b86f7efd0d9 to your computer and use it in GitHub Desktop.
Save alexvorobiev/2e0c5cf6ba2b6176480a0b86f7efd0d9 to your computer and use it in GitHub Desktop.
Tailscale on an ip camera running Dafang hacks firmware

The hardware architecture is “MIPS 32bit little endian” (mipsel for short) but Go toolchain calls it mipsle (tailscale is written in Go). More here https://superuser.com/questions/1262144/naming-mipsle-vs-mipsel.

Follow https://tailscale.com/kb/1053/install-static/ tutorial.

Download

cd /root
https://pkgs.tailscale.com/stable/tailscale_1.32.2_mipsle.tgz
tar zxvf tailscale_1.32.2_mipsle.tgz

iptables

tailscale needs iptables. The firmware ships it as /system/bin/xtables-multi.

mkdir /root/bin
cp /system/bin/xtables-multi /root/bin
export PATH=$PATH:/root/bin

Launch tailscale

/root/tailscale_1.32.2_mipsle/tailscaled --state=tailscaled.state &
/root/tailscale_1.32.2_mipsle/tailscale up

The last command will print a URL to open for authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment