Currently i have a server running Ubuntu 14.04 on a LEMP stack, i was trying to enable UFW following this tutorial.
But after i run ** sudo ufw allow ssh**
I’m getting the following error: ERROR: initcaps [Errno 2] modprobe: ERROR: …/libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file ‘/lib/modules/3.13.0-36-generic/modules.dep.bin’ ip6tables v1.4.21: can’t initialize ip6tables table `filter’: Table does not exist (do you need to insmod?) Perhaps ip6tables or your kernel needs to be upgraded.
Any ideas?
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!
This comment has been deleted
It appears that you might have upgraded the kernel without rebooting. Try rebooting the server and trying again. If that fails, let me know.
Run the following command and then reboot your droplet to fix it:
sudo apt-get install linux-image-$(uname -r)
That should install your Droplet’s kernel and the corresponding modules on the Droplet.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.