Skip to content

Instantly share code, notes, and snippets.

@xxiz
Last active April 25, 2024 18:58
Show Gist options
  • Save xxiz/811ceed3a4d5ff2e185f66a1fbc06d33 to your computer and use it in GitHub Desktop.
Save xxiz/811ceed3a4d5ff2e185f66a1fbc06d33 to your computer and use it in GitHub Desktop.
enable only tailscale ssh traffic and deny others via ufw
ufw --force reset
ufw default deny incoming
ufw default allow outgoing
ufw allow in on tailscale0 comment 'Tailscale'
ufw allow 41641/udp comment 'Tailscale'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment