タグ : iptables

[iptables] Applying firewall rules: iptables-restore v1.4.7: no command specified Error occurred at line: 6

iptables を編集後、再起動したらエラーが発生しました。

■ エラーメッセージ

# service iptables restart
iptables: Applying firewall rules: iptables-restore v1.4.7: no command specified
Error occurred at line: 6
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
                                                           [FAILED]

■ 解決方法

何も書いてない行にスペースがないか確認する。
→スペースがある場合、削除する

以上です。


参考情報

さくらのVPSへのiptablesの設定 | 9ensanのLifeHack