New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
iptables not working - file missing?
I'm struggling getting iptables to work. If I execute the command 'iptables -L' I get this error message:
FATAL: Could not load /lib/modules/3.2.0-23-virtual/modules.dep: No such file or directory
iptables v1.4.12: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
The file /lib/modules/3.2.0-23-virtual/modules.dep indeed isn't there. Is this my fault or is it perhaps missing in the OS template of the provider?
This is on Ubuntu 12.04 Server 64 bit.
Thanks
Comments
What does
Show - do you have the modules for that kernel in the o/s? If so then run a
And try iptables again.
OpenVZ?
That shows me a folder named 'build'
I don't believe if I have. Running depmod -a doesn't do anything (no output/makes no difference).
It's DigitalOcean. I've been told they use KVM?
@Freek - is there anything in /lib/modules ?
If it's kvm then it should run the kernel from within the o/s -- try doing an apt-get update & apt-get upgrade to update to the latest kernel, or install a kernel specifically to get the modules..
@unused Thanks, I tried it but again it made no difference. I ended up reinstalling the whole VPS. I think minstall removed too much this time, since the second time I didn't run it and it worked flawlessly
Thanks for the help though!