Last active
February 17, 2019 11:32
-
-
Save zaherg/4964784326607b14887ea9ff05c0c483 to your computer and use it in GitHub Desktop.
ufw
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/sh | |
ufw default deny incoming | |
ufw default allow outgoing | |
ufw allow ssh | |
ufw allow https | |
ufw allow http | |
ufw allow 2376/tcp | |
ufw allow 2377/tcp | |
ufw allow 4789/udp | |
ufw allow 7946/udp | |
chmod 755 /etc /usr | |
echo " remember to run: ufw enable" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment