Skip to content

Instantly share code, notes, and snippets.

@surfaceflinger
Last active August 2, 2025 14:51
Show Gist options
  • Select an option

  • Save surfaceflinger/514be1410e9a9b4662fb45f78e9ba49b to your computer and use it in GitHub Desktop.

Select an option

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
if [[ -f /data/bin/node_exporter ]]; then
node_exporter --web.listen-address=127.0.0.1:9100 > /dev/null 2>&1 &
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