Last active
December 1, 2024 15:14
-
-
Save surfaceflinger/514be1410e9a9b4662fb45f78e9ba49b to your computer and use it in GitHub Desktop.
Setup Valetudo over Tailscale on Dreame robots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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