Bugs in acf-iptables-0.3.1-r2
Hello,
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 to ‘match’ (string expected, got nil) stack traceback: [C]: in function ‘match’ /usr/share/acf/app//iptables/iptables-model.lua:455: in function (tail call): ? /usr/share/acf/lib//controllerfunctions.lua:68: in function (tail call): ? /usr/share/acf/app//acf_www-controller.lua:478: in function [C]: in function ‘xpcall’ /usr/share/acf/app//acf_www-controller.lua:386: in function ‘dispatch’ [string “acf”]:18: in main chunk
BR,
MiskorR
(from redmine: issue id 957, created on 2012-01-23, closed on 2012-01-29)