Created
July 23, 2020 12:04
-
-
Save demiters/00794411f9144b9f684c8ea7acd74743 to your computer and use it in GitHub Desktop.
ufw firewall for a microk8s server
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
#!/bin/bash | |
ufw default deny incoming | |
ufw default allow outgoing | |
ufw default allow routed | |
ufw allow OpenSSH | |
ufw allow http | |
ufw allow https | |
ufw allow in on cni0 && ufw allow out on cni0 | |
ufw enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment