Last active
April 25, 2024 18:58
-
-
Save xxiz/811ceed3a4d5ff2e185f66a1fbc06d33 to your computer and use it in GitHub Desktop.
enable only tailscale ssh traffic and deny others via ufw
This file contains 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
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