ufw not working on 14.04 image?

  • Posted on April 25, 2014
  • asherwinAsked by Alex

on a new ubuntu 14.04 server, installing and configuring ufw all seems well (no errors, or anything of that nature)

but… it does not block anything, at all. even the most basic configuration of: ufw default deny incoming ufw default allow outgoing ufw allow ssh ufw enable

everything running on the server is still exposed when accessed remotely

some searching online has turned up some people complaining of ufw problems with “some virtual server kernels”

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I upgraded from 12.04 to 14.04. <br> <br>Old mainline kernel 3.14.1 (12.04) was retained after upgrade as it was newer than what 14.04 had. <br> <br>Both UFW & Firestarter seemed to work but did nothing even when I tried to block everything. <br> <br>Solution: <br>- Installed 3.15.RC2 kkernel. <br>- Removed 3.14.1 kernel. <br>- Downloaded & installed 3.14.1 again (as 3.15.2.RC2 was unstable on my machine). <br>- Removed 3.15.RC2 kernel. <br> <br> <br>Now firewall rules are working fine. <br> <br>Think this mess happened as kernel was retained from older OS & that messed somethings up. <br> <br>Hope this resolves the issue for you as it did for me.

@scott.lorimer: What’s the output of “ufw status”

Check your configuration again, I have just setup ufw on Ubuntu 14.04 and it works just fine.