Skip to content

Instantly share code, notes, and snippets.

@surfaceflinger
Last active December 1, 2024 15:14
Show Gist options
  • Save surfaceflinger/514be1410e9a9b4662fb45f78e9ba49b to your computer and use it in GitHub Desktop.
Save surfaceflinger/514be1410e9a9b4662fb45f78e9ba49b to your computer and use it in GitHub Desktop.
Setup Valetudo over Tailscale on Dreame robots.
if [[ -f /data/bin/tailscaled ]]; then
mkdir -p /data/tailscale/state /tmp/tailscale
STATE_DIRECTORY=/tmp/tailscale /data/bin/tailscaled \
--tun=userspace-networking \
--socket=/tmp/tailscale/tailscaled.sock \
--statedir=/data/tailscale/state > /dev/null 2>&1 &
iptables -A INPUT -p tcp --dport 80 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
fi
/data/bin/tailscale --socket=/tmp/tailscale/tailscaled.sock up --hostname=valetudo-epic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment