How can I fix the iptables error message "unable to initialize table 'filter'"?

Posted by user3215 on Ask Ubuntu See other posts from Ask Ubuntu or by user3215
Published on 2011-02-26T17:42:36Z Indexed on 2011/02/27 15:31 UTC
Read the original article Hit count: 241

Filed under:
|
|

When I try to use iptables command on one of my Rackspace cloud server, I'm getting the following error.

In an attempt to apply iptables rules with iptables-apply -t 120 /etc/iptables.rules and iptables-restore < /etc/iptables.rules I got the next error:

FATAL: Could not load /lib/modules/2.6.35.4-rscloud/modules.dep: No such file or directory
iptables-restore v1.4.4: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 2
Try `iptables-restore -h' or 'iptables-restore --help' for more information.

How do I fix this?

© Ask Ubuntu or respective owner

Related posts about server

Related posts about 9.10