Skip to content

Instantly share code, notes, and snippets.

@ph1048
Last active June 23, 2025 21:18
Show Gist options
  • Save ph1048/f76df8f06186ffb6febec89ae204e5e0 to your computer and use it in GitHub Desktop.
Save ph1048/f76df8f06186ffb6febec89ae204e5e0 to your computer and use it in GitHub Desktop.
Keenetic Tailscale rules re-apply automation
#!/bin/sh
# Place here: /opt/etc/ndm/netfilter.d/ts.sh
[ "$table" == "mangle" ] && exit 0
[ -e /opt/var/run/tailscale/tailscaled.sock ] || exit 0
tailscale set --netfilter-mode=off && tailscale set --netfilter-mode=on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment