Redhat 6.8でip6tables起動エラー

Redhat 6.8でip6tablesを起動する際に、以下のエラーが発生する。

$ sudo service start ip6tables

ip6tables-restore v1.4.7: ip6tables-restore: unable to initialize table 'filter'

Error occurred at line: 2

Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.

 インターネットで調べたら、以下のURLでヒントをもらった。

Bug 642268 – ip6tables-restore unable to initialize table 'filter'

/etc/sysconfig/networkには以下の行が定義されていた。

NETWORKING_IPV6=no

 そもそもIPv6が有効になっていないから、ip6tablesは要らない。以下のコマンドを実行して、ip6tablesを無効にすればよい。

sudo chkconfig ip6tables off