今天在CentOS 4.7 ia64上遇到了這個問題
iptables v1.2.11: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
試了一下網路上介紹的方法:
先用下列的指令去檢查是否有載入iptables的相關模組
lsmod | grep ip
如果沒有再手動載入
modprobe ip_tables
modprobe ip_conntrack
modprobe iptable_filter
modprobe ipt_state
結果載入不了
後來,用uname -a比較了另一台同型號也是跑CentOS 4.7 ia64但可以正常執行iptables的主機,發現兩部主機的kernel版本有差,推論應該是這部主機升級kernel後沒有reboot,於是將該部主機重新開機,然後再試一次就可以了。
參考資料:
http://www.linuxquestions.org/questions/linux-networking-3/iptables-v1-3-8-cant-initialize-iptables-table-%60filter-577212/#post2860895