Skip to content

Instantly share code, notes, and snippets.

@zaherg
Last active February 17, 2019 11:32
Show Gist options
  • Save zaherg/4964784326607b14887ea9ff05c0c483 to your computer and use it in GitHub Desktop.
Save zaherg/4964784326607b14887ea9ff05c0c483 to your computer and use it in GitHub Desktop.
ufw
#!/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