Report this

What is the reason for this report?

ufw not working on 14.04 image?

Posted on April 25, 2014
Alex

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”



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!

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.

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.

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.