Created
May 15, 2017 20:28
-
-
Save georgkreimer/7a02af49604da91c5e3605b08b2872ec to your computer and use it in GitHub Desktop.
Revisions
-
georgkreimer created this gist
May 15, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ https://community.online.net/t/enable-ufw-in-debian-or-ubuntu-results-in-lock-out/2118/2 Set the default INPUT policy to ACCEPT: Edit /etc/default/ufw and set: DEFAULT_INPUT_POLICY="ACCEPT" Append a drop-all rule to the INPUT chain: Edit /etc/ufw/after.rules, add this line just before the final COMMIT line: -A ufw-reject-input -j DROP Disable UFW logging (this seems to cause issuses with Scaleway's default kernel): ufw logging off Enable UFW (don't forget to allow SSH traffic): ufw allow ssh; ufw enable That's it, UFW is up and running, and NBD shouldn't cause issues.