(11/09/12 18:28), Pablo Neira Ayuso wrote:
I think people should call iptables-restore -T to test the rule-set before, at least the first time the have saved the rule-set, to make sure that they don't run into inconsistencies. Applying the rule-set partially for one table may also result in inconsistencies, so I still don't see what we gain from allowing this.
Yes, The inconsistencies from syntax error can be avoided by -t/--test option. But, if the iptables-restore used in a rule generation script and it fails, inconsistencies will occur. So, I think that the iptables-restore should avoid the inconsistencies even if the wrong rule-set was inputted at the real run. Also, I think that the iptables-restore needs rollback capability for the situation of iptc_commit failure. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html