asherwin
By:
asherwin

ufw not working on 14.04 image?

April 25, 2014 1.1k views
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"
3 Answers
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"
I upgraded from 12.04 to 14.04.

Old mainline kernel 3.14.1 (12.04) was retained after upgrade as it was newer than what 14.04 had.

Both UFW & Firestarter seemed to work but did nothing even when I tried to block everything.

Solution:
- Installed 3.15.RC2 kkernel.
- Removed 3.14.1 kernel.
- Downloaded & installed 3.14.1 again (as 3.15.2.RC2 was unstable on my machine).
- Removed 3.15.RC2 kernel.


Now firewall rules are working fine.

Think this mess happened as kernel was retained from older OS & that messed somethings up.

Hope this resolves the issue for you as it did for me.
Have another answer? Share your knowledge.