iptables-save miss space separator when saving rules. Result fail to restore. Problem with option hashlimit-htable-gcinterval. Reproducible: Always Steps to Reproduce: 1. Add rule with hashlimit-htable-gcinterval. iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -m hashlimit --hashlimit-above 2/min --hashlimit-burst 3 --hashlimit-mode srcip --hashlimit-name ssh --hashlimit-htable-size 20 --hashlimit-htable-max 30 --hashlimit-htable-gcinterval 60000 --hashlimit-htable-expire 300000 -j REJECT --reject-with tcp-reset 2. iptables-save > /tmp/rules 3. iptables-restore < /tmp/rules Actual Results: iptables-restore v1.4.2: hashlimit: Bad value for "--hashlimit-htable-gcinterval" option: "60000--hashlimit-htable-expire" Expected Results: restoring without errors
http://bugzilla.netfilter.org/show_bug.cgi?id=550
patch accepted upstream https://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commitdiff_plain;h=04c97954d5933fc935616f69a8e63944d5c6cec4
(In reply to comment #2) > patch accepted upstream This patch is not complete. Bug is alive. http://bugzilla.netfilter.org/show_bug.cgi?id=568
Thank you for report, Михаил. This bug should finally be fixed in iptables-1.4.2-r2.