No ip_tables module after kernel update

Posted September 16, 2017 1.8k views
FirewallVPNUbuntu 16.04

I have an Ubuntu 16.04 Droplet that was upgraded from the previous LTS. I went ahead and used the DO Kernel menu to update my kernel which was 3.18something to 4.4.0-28. Did the shutdowns and restarts and I indeed have that kernel now.

However, I do seem to be missing some modules, ip_tables is the one I’m aware of, because UFW doesn’t seem to work because iptables doesn’t seem to work.

Tried googling for the problem, but every solution I find starts and ends with “update your kernel”.

I did make a snapshot before doing the kernel upgrade, so worst case I could fall back to that, but I went through all this because I wasn’t able to remove images from Docker, so I read I needed a new kernel for the overlay2 filesystem which was supposed to solve all my problems.

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.

Submit an Answer
1 answer

I managed to solve this by first going to the Kernel menu on DO dashboard and resetting the original kernel (3.13…).

Then I followed the guide at How To Update a DigitalOcean Server’s Kernel. I set the DigitalOcean GrubLoader v0.2 as it suggested, although I’m not sure it was necessary.

I went to /lib/modules and checked what kernel versions where there. The highest was 4.4.0-53. Then following the guide above, I went ahead and updated my Grub boot loader config to boot into 4.4.0-53.

Everything is working now, including networking and Docker.