Bugs in acf-iptables-0.3.1-r2
I’ve just downloaded “acf-iptables-0.3.1-r2” package and it looks to me that it does not work properly. Here are my observations:
It looks that “save” button (both on status and expert pages) uses “iptables save” script (“/etc/init.d/iptables”), which saves rules in this file: /etc/iptables/rules-save, but in acf iptables-model.lua you are using this file “local rulesfile = ”/var/lib/iptables/rules-save". This is inconsistent and thus saved rules are not reloaded.
Editing of rules in ACF after they are created is impossible, every attempt is producing an error:
Application error occured
/usr/share/acf/app//iptables/iptables-model.lua:455: bad argument #1 (closed) to ‘match’ (string expected, got nil) stack traceback: [C]: in function ‘match’ /usr/share/acf/app//iptables/iptables-model.lua:455: in function </usr/share/acf/app//iptables/iptables-model.lua:335> (tail call): ? /usr/share/acf/lib//controllerfunctions.lua:68: in function </usr/share/acf/lib//controllerfunctions.lua:67> (tail call): ? /usr/share/acf/app//acf_www-controller.lua:478: in function </usr/share/acf/app//acf_www-controller.lua:386> [C]: in function ‘xpcall’ /usr/share/acf/app//acf_www-controller.lua:386: in function ‘dispatch’ [string “acf”]:18: in main chunk
(from redmine: issue id 957, created on 2012-01-23, closed on 2012-01-29)