Skip to content

Instantly share code, notes, and snippets.

@georgkreimer
Created May 15, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgkreimer/ac4a08172e0481d0f6c59695903f53d3 to your computer and use it in GitHub Desktop.
Save georgkreimer/ac4a08172e0481d0f6c59695903f53d3 to your computer and use it in GitHub Desktop.
UFW config changes for NBD connections
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment