Skip to content

Instantly share code, notes, and snippets.

@ethicnology
Last active June 26, 2023 07:53
Show Gist options
  • Save ethicnology/d55d066ed136edf7031cf6b9d9f68598 to your computer and use it in GitHub Desktop.
Save ethicnology/d55d066ed136edf7031cf6b9d9f68598 to your computer and use it in GitHub Desktop.
ufw

ufw

sudo bash << EOF
ufw --force reset
ufw default deny incoming
ufw default deny outgoing
ufw limit 22                  # ssh
ufw allow out 53              # dns
ufw allow out 80              # http
ufw allow out 443             # https
ufw enable
EOF

@ethicnology
Copy link
Author

sudo ufw allow in on mpbr0      # multipass bridge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment