iptables – 无法初始化表filter

我在/etc/firewall.conf中保存了一个防火墙文件。 一切都很好,我可以成功地将它用于“iptables-restore /etc/firewall.conf”。

所以,从这个文件开始,我创建了一个php脚本(以cron身份运行),它写了一个名为/etc/dinamic-firewall.conf的文件; 与firewall.conf相同的内容有一些补充。

问题是,当我尝试“iptables-restore /etc/dinamic-firewall.conf”时,我总是遇到这个错误:

'ptables-restore v1.4.21: iptables-restore: unable to initialize table 'filter Error occurred at line: 2 Try `iptables-restore -h' or 'iptables-restore --help' for more information. 

两个文件的第一部分是相同的

 # Generated by myfirewall on Thu Nov 20 08:51:01 2014 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :fail2ban-pure-ftpd - [0:0] :fail2ban-ssh - [0:0] 

此外,两个文件都具有相同的权限/所有者。 那么,有什么不对? 谢谢!

PS Ubuntu服务器14.04.1 lts x64

问题是线路结束的风格; 而不是"\r\n"我使用"\n" ,现在一切正常。